[llvm-commits] [llvm] r57660 - /llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

Dan Gohman gohman at apple.com
Thu Oct 16 17:56:52 PDT 2008


Author: djg
Date: Thu Oct 16 19:56:52 2008
New Revision: 57660

URL: http://llvm.org/viewvc/llvm-project?rev=57660&view=rev
Log:
Use 0 instead of false to return a null pointer.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp?rev=57660&r1=57659&r2=57660&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp Thu Oct 16 19:56:52 2008
@@ -163,7 +163,7 @@
 /// Otherwise, return null.
 static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
   // Constants should be folded, not unswitched on!
-  if (isa<Constant>(Cond)) return false;
+  if (isa<Constant>(Cond)) return 0;
 
   // TODO: Handle: br (VARIANT|INVARIANT).
   // TODO: Hoist simple expressions out of loops.





More information about the llvm-commits mailing list