[cfe-commits] r139879 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Richard Trieu
rtrieu at google.com
Thu Sep 15 16:57:21 PDT 2011
Author: rtrieu
Date: Thu Sep 15 18:57:21 2011
New Revision: 139879
URL: http://llvm.org/viewvc/llvm-project?rev=139879&view=rev
Log:
Remove no longer needed LHSType and RHSType from checkArithmeticNull()
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=139879&r1=139878&r2=139879&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Sep 15 18:57:21 2011
@@ -7691,9 +7691,7 @@
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.
More information about the cfe-commits
mailing list