[cfe-commits] r48882 - /cfe/trunk/Driver/ASTConsumers.cpp

Ted Kremenek kremenek at apple.com
Thu Mar 27 10:14:42 PDT 2008


Author: kremenek
Date: Thu Mar 27 12:14:42 2008
New Revision: 48882

URL: http://llvm.org/viewvc/llvm-project?rev=48882&view=rev
Log:
Don't emit any timings for GRSimple if the CFG is not going to be built.

Modified:
    cfe/trunk/Driver/ASTConsumers.cpp

Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=48882&r1=48881&r2=48882&view=diff

==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Thu Mar 27 12:14:42 2008
@@ -652,6 +652,9 @@
 
 void GRSimpleValsVisitor::VisitCFG(CFG& C, Decl& CD) {
   
+  if (Diags.hasErrorOccurred())
+    return;
+  
   SourceLocation Loc = CD.getLocation();
 
   if (!Loc.isFileID() ||





More information about the cfe-commits mailing list