[cfe-commits] r84697 - /cfe/trunk/lib/Analysis/CFG.cpp

Ted Kremenek kremenek at apple.com
Tue Oct 20 16:59:29 PDT 2009


Author: kremenek
Date: Tue Oct 20 18:59:28 2009
New Revision: 84697

URL: http://llvm.org/viewvc/llvm-project?rev=84697&view=rev
Log:
Remove stale comment and tighten code.

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=84697&r1=84696&r2=84697&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Tue Oct 20 18:59:28 2009
@@ -254,12 +254,7 @@
   // 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





More information about the cfe-commits mailing list