[cfe-commits] r80298 - /cfe/trunk/lib/Analysis/CFG.cpp
Ted Kremenek
kremenek at apple.com
Thu Aug 27 16:16:26 PDT 2009
Author: kremenek
Date: Thu Aug 27 18:16:26 2009
New Revision: 80298
URL: http://llvm.org/viewvc/llvm-project?rev=80298&view=rev
Log:
CFG construction: Abort CFG construction when processing a CompoundStmt if any
of its subexpressions resulted in a "bad CFG".
Modified:
cfe/trunk/lib/Analysis/CFG.cpp
Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=80298&r1=80297&r2=80298&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Thu Aug 27 18:16:26 2009
@@ -560,6 +560,9 @@
for (CompoundStmt::reverse_body_iterator I=C->body_rbegin(), E=C->body_rend();
I != E; ++I ) {
LastBlock = addStmt(*I);
+
+ if (badCFG)
+ return NULL;
}
return LastBlock;
}
More information about the cfe-commits
mailing list