forked from OSchip/llvm-project
Don't analyze functions when we have parse errors.
llvm-svn: 47139
This commit is contained in:
parent
c354ebddd1
commit
5d8bab7ecd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue