From ab929bb352925a16cfe1563d168f4fc0fce577db Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 20 Oct 2009 23:59:28 +0000 Subject: Remove stale comment and tighten code. llvm-svn: 84697 --- clang/lib/Analysis/CFG.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'clang/lib/Analysis/CFG.cpp') diff --git a/clang/lib/Analysis/CFG.cpp b/clang/lib/Analysis/CFG.cpp index 6945c2f376e..31417597f79 100644 --- a/clang/lib/Analysis/CFG.cpp +++ b/clang/lib/Analysis/CFG.cpp @@ -254,12 +254,7 @@ CFG* CFGBuilder::buildCFG(Stmt* Statement, ASTContext* C) { // Create an empty entry block that has no predecessors. cfg->setEntry(createBlock()); - if (badCFG) - return NULL; - - // NULL out cfg so that repeated calls to the builder will fail and that the - // ownership of the constructed CFG is passed to the caller. - return cfg.take(); + return badCFG ? NULL : cfg.take(); } /// createBlock - Used to lazily create blocks that are connected -- cgit v1.2.3