[cfe-commits] r164145 - /cfe/trunk/lib/Sema/SemaChecking.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Sep 18 10:46:26 PDT 2012
Author: fjahanian
Date: Tue Sep 18 12:46:26 2012
New Revision: 164145
URL: http://llvm.org/viewvc/llvm-project?rev=164145&view=rev
Log:
minor refactoring of my last check-in.
Modified:
cfe/trunk/lib/Sema/SemaChecking.cpp
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=164145&r1=164144&r2=164145&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Tue Sep 18 12:46:26 2012
@@ -4355,11 +4355,11 @@
QualType T = E->getLHS()->getType();
assert(S.Context.hasSameUnqualifiedType(T, E->getRHS()->getType())
&& "comparison with mismatched types");
+ if (E->isValueDependent())
+ return AnalyzeImpConvsInComparison(S, E);
Expr *LHS = E->getLHS()->IgnoreParenImpCasts();
Expr *RHS = E->getRHS()->IgnoreParenImpCasts();
- if (E->isValueDependent())
- return AnalyzeImpConvsInComparison(S, E);
bool IsComparisonConstant = false;
More information about the cfe-commits
mailing list