| commit | ed9f054a9c4a233fd1b5e927473bb69ae1b2c328 | [log] [tgz] |
|---|---|---|
| author | Ted Kremenek <kremenek@apple.com> | Thu Mar 27 17:14:42 2008 +0000 |
| committer | Ted Kremenek <kremenek@apple.com> | Thu Mar 27 17:14:42 2008 +0000 |
| tree | 52a42c3a0a2b0cfaa25ff75a64f0186f8182da3e | |
| parent | e2337ecf76e3772a33e5cfba09d8c8e5a469d023 [diff] [blame] |
Don't emit any timings for GRSimple if the CFG is not going to be built. llvm-svn: 48882
diff --git a/clang/Driver/ASTConsumers.cpp b/clang/Driver/ASTConsumers.cpp index d58eca5..0ae88dd 100644 --- a/clang/Driver/ASTConsumers.cpp +++ b/clang/Driver/ASTConsumers.cpp
@@ -652,6 +652,9 @@ void GRSimpleValsVisitor::VisitCFG(CFG& C, Decl& CD) { + if (Diags.hasErrorOccurred()) + return; + SourceLocation Loc = CD.getLocation(); if (!Loc.isFileID() ||