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:
Ted Kremenek 2007-09-17 17:10:02 +00:00
parent 8f0e2f2329
commit c3fddac8e7
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}
//===----------------------------------------------------------------------===//