Tightened IgnoreParen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43517 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index e5412d4..ac1c440 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -1194,13 +1194,8 @@
// Utility method to plow through parentheses to get the first nested
// non-ParenExpr expr.
static inline Expr* IgnoreParen(Expr* E) {
-
- while (true) {
- if (ParenExpr* P = dyn_cast<ParenExpr>(E))
- E = P->getSubExpr();
- else
- break;
- }
+ while (ParenExpr* P = dyn_cast<ParenExpr>(E))
+ E = P->getSubExpr();
return E;
}