Don't emit any timings for GRSimple if the CFG is not going to be built.
llvm-svn: 48882
This commit is contained in:
parent
e2337ecf76
commit
ed9f054a9c
|
@ -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() ||
|
||||
|
|
Loading…
Reference in New Issue