Removed check for NULL CFG. Bad CFGs will fire an assertion failure
in the CFG builder logic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42033 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/ASTStreamers.cpp b/Driver/ASTStreamers.cpp
index 7ef3001..124b9e2 100644
--- a/Driver/ASTStreamers.cpp
+++ b/Driver/ASTStreamers.cpp
@@ -158,11 +158,9 @@
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;
}
//===----------------------------------------------------------------------===//