diff options
-rw-r--r-- | Analysis/GRSimpleVals.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp index 490ed7f31e..1e438ee5b3 100644 --- a/Analysis/GRSimpleVals.cpp +++ b/Analysis/GRSimpleVals.cpp @@ -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; |