From da9b30ea415af1de659524c28793e2597342f6e8 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 20 Oct 2009 23:59:28 +0000 Subject: [PATCH] Remove stale comment and tighten code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84697 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFG.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 6945c2f376..31417597f7 100644 --- a/lib/Analysis/CFG.cpp +++ b/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 -- 2.40.0