[cfe-commits] r42033 - /cfe/trunk/Driver/ASTStreamers.cpp
Ted Kremenek
kremenek at apple.com
Mon Sep 17 10:10:02 PDT 2007
Author: kremenek
Date: Mon Sep 17 12:10:02 2007
New Revision: 42033
URL: http://llvm.org/viewvc/llvm-project?rev=42033&view=rev
Log:
Removed check for NULL CFG. Bad CFGs will fire an assertion failure
in the CFG builder logic.
Modified:
cfe/trunk/Driver/ASTStreamers.cpp
Modified: cfe/trunk/Driver/ASTStreamers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTStreamers.cpp?rev=42033&r1=42032&r2=42033&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTStreamers.cpp (original)
+++ cfe/trunk/Driver/ASTStreamers.cpp Mon Sep 17 12:10:02 2007
@@ -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;
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list