[cfe-commits] r143790 - /cfe/trunk/lib/Analysis/LiveVariables.cpp
Anna Zaks
ganna at apple.com
Fri Nov 4 22:20:59 PDT 2011
Author: zaks
Date: Sat Nov 5 00:20:59 2011
New Revision: 143790
URL: http://llvm.org/viewvc/llvm-project?rev=143790&view=rev
Log:
Another correction to the LiveVariables commit (r143767, r143780).
Make test/Analysis/misc-ps.c test pass.
Modified:
cfe/trunk/lib/Analysis/LiveVariables.cpp
Modified: cfe/trunk/lib/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/LiveVariables.cpp?rev=143790&r1=143789&r2=143790&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/lib/Analysis/LiveVariables.cpp Sat Nov 5 00:20:59 2011
@@ -233,11 +233,15 @@
static const Stmt *LookThroughStmt(const Stmt *S) {
while (S) {
- if (const ParenExpr *ParenE = dyn_cast<ParenExpr>(S))
+ if (const ParenExpr *ParenE = dyn_cast<ParenExpr>(S)) {
S = ParenE->getSubExpr();
- else if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(S))
+ continue;
+ } else if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(S)) {
S = OVE->getSourceExpr();
- else
+ continue;
+ } else if (const Expr *E = dyn_cast<Expr>(S)) {
+ return E->IgnoreParens();
+ } else
break;
}
return S;
More information about the cfe-commits
mailing list