зеркало из https://github.com/microsoft/clang-1.git
Remove no longer needed LHSType and RHSType from checkArithmeticNull()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5e3a23585f
Коммит
c3ba24f8af
|
@ -7691,9 +7691,7 @@ static void checkArithmeticNull(Sema &S, ExprResult &LHS, ExprResult &RHS,
|
|||
bool LHSNull = isa<GNUNullExpr>(LHS.get()->IgnoreParenImpCasts());
|
||||
bool RHSNull = isa<GNUNullExpr>(RHS.get()->IgnoreParenImpCasts());
|
||||
|
||||
QualType LHSType = LHS.get()->getType();
|
||||
QualType RHSType = RHS.get()->getType();
|
||||
QualType NonNullType = LHSNull ? RHSType : LHSType;
|
||||
QualType NonNullType = LHSNull ? RHS.get()->getType() : LHS.get()->getType();
|
||||
|
||||
// Avoid analyzing cases where the result will either be invalid (and
|
||||
// diagnosed as such) or entirely valid and not something to warn about.
|
||||
|
|
Загрузка…
Ссылка в новой задаче