diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-27 17:14:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-27 17:14:42 +0000 |
commit | 1c33975b2192fa4536b1205a1809826ff6e03263 (patch) | |
tree | 94b0e7595ab5fc150ac9fbfddc4441588058c39c | |
parent | 5d00f86d627efc76d38a9309fe135f67b5cecb68 (diff) |
Don't emit any timings for GRSimple if the CFG is not going to be built.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48882 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/ASTConsumers.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index d58eca5d35..0ae88dd0c8 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -652,6 +652,9 @@ ASTConsumer* clang::CreateGRSimpleVals(Diagnostic &Diags, void GRSimpleValsVisitor::VisitCFG(CFG& C, Decl& CD) { + if (Diags.hasErrorOccurred()) + return; + SourceLocation Loc = CD.getLocation(); if (!Loc.isFileID() || |