Don't analyze functions when we have parse errors.

llvm-svn: 47139
This commit is contained in:
Ted Kremenek 2008-02-14 22:54:17 +00:00
parent c354ebddd1
commit 5d8bab7ecd
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ namespace clang {
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;