[cfe-commits] r43517 - /cfe/trunk/Sema/SemaExpr.cpp
Ted Kremenek
kremenek at apple.com
Tue Oct 30 14:03:10 PDT 2007
Author: kremenek
Date: Tue Oct 30 16:03:09 2007
New Revision: 43517
URL: http://llvm.org/viewvc/llvm-project?rev=43517&view=rev
Log:
Tightened IgnoreParen.
Modified:
cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=43517&r1=43516&r2=43517&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Tue Oct 30 16:03:09 2007
@@ -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;
}
More information about the cfe-commits
mailing list