projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fca50
)
minor refactoring of my last check-in.
author
Fariborz Jahanian
<fjahanian@apple.com>
Tue, 18 Sep 2012 17:46:26 +0000
(17:46 +0000)
committer
Fariborz Jahanian
<fjahanian@apple.com>
Tue, 18 Sep 2012 17:46:26 +0000
(17:46 +0000)
llvm-svn: 164145
clang/lib/Sema/SemaChecking.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaChecking.cpp
b/clang/lib/Sema/SemaChecking.cpp
index
ed5517d
..
77058ac
100644
(file)
--- a/
clang/lib/Sema/SemaChecking.cpp
+++ b/
clang/lib/Sema/SemaChecking.cpp
@@
-4355,11
+4355,11
@@
static void AnalyzeComparison(Sema &S, BinaryOperator *E) {
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;