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() ||