[cfe-commits] r47139 - /cfe/trunk/Analysis/GRSimpleVals.cpp
Ted Kremenek
kremenek at apple.com
Thu Feb 14 14:54:17 PST 2008
Author: kremenek
Date: Thu Feb 14 16:54:17 2008
New Revision: 47139
URL: http://llvm.org/viewvc/llvm-project?rev=47139&view=rev
Log:
Don't analyze functions when we have parse errors.
Modified:
cfe/trunk/Analysis/GRSimpleVals.cpp
Modified: cfe/trunk/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRSimpleVals.cpp?rev=47139&r1=47138&r2=47139&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/Analysis/GRSimpleVals.cpp Thu Feb 14 16:54:17 2008
@@ -22,6 +22,9 @@
void RunGRSimpleVals(CFG& cfg, FunctionDecl& FD, ASTContext& Ctx,
Diagnostic& Diag) {
+ if (Diag.hasErrorOccurred())
+ return;
+
GRCoreEngine<GRExprEngine> Engine(cfg, FD, Ctx);
GRExprEngine* CheckerState = &Engine.getCheckerState();
GRSimpleVals GRSV;
More information about the cfe-commits
mailing list