Removed check for NULL CFG. Bad CFGs will fire an assertion failure
in the CFG builder logic. llvm-svn: 42033
This commit is contained in:
parent
8f0e2f2329
commit
c3fddac8e7
|
@ -158,11 +158,9 @@ void CFGVisitor::HandleTopLevelDecl(Decl *D) {
|
|||
fprintf(stderr,"\n");
|
||||
}
|
||||
|
||||
if (CFG *C = CFG::buildCFG(FD->getBody())) {
|
||||
VisitCFG(*C);
|
||||
delete C;
|
||||
} else
|
||||
fprintf(stderr, " Error processing CFG.\n");
|
||||
CFG *C = CFG::buildCFG(FD->getBody());
|
||||
VisitCFG(*C);
|
||||
delete C;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue