summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 800f8e3061a..234af89e165 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -6312,11 +6312,9 @@ QualType Sema::CheckCompareOperands(ExprResult &lex, ExprResult &rex,
QualType lType = lex.get()->getType();
QualType rType = rex.get()->getType();
-
+
Expr *LHSStripped = lex.get()->IgnoreParenImpCasts();
Expr *RHSStripped = rex.get()->IgnoreParenImpCasts();
- QualType LHSStrippedType = LHSStripped->getType();
- QualType RHSStrippedType = RHSStripped->getType();
checkEnumComparison(*this, Loc, lex, rex);
OpenPOWER on IntegriCloud