Tightened IgnoreParen.

llvm-svn: 43517
This commit is contained in:
Ted Kremenek 2007-10-30 21:03:09 +00:00
parent ffe1e218f2
commit 78036cdd5c
1 changed files with 2 additions and 7 deletions

View File

@ -1194,13 +1194,8 @@ inline QualType Sema::CheckShiftOperands( // C99 6.5.7
// 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;
}