diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-02-14 22:54:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-02-14 22:54:17 +0000 |
commit | 546bded9ba9676e7ddae45b9ab8e1e08c6660db7 (patch) | |
tree | f6bad98c79f159928c95b9a1f50ea347bb9ce003 | |
parent | e01c98767dfd7153c3c84637c36659e3bbe16ff7 (diff) |
Don't analyze functions when we have parse errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47139 91177308-0d34-0410-b5e6-96231b3b80d8
-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; |