Use 0 instead of false to return a null pointer.
authorDan Gohman <gohman@apple.com>
Fri, 17 Oct 2008 00:56:52 +0000 (00:56 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 17 Oct 2008 00:56:52 +0000 (00:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57660 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopUnswitch.cpp

index fbfe2977278eab2dca5decac4113891267a53113..455338b3341d54d0716a5d8f9f69a7621610a2cc 100644 (file)
@@ -163,7 +163,7 @@ LoopPass *llvm::createLoopUnswitchPass(bool Os) {
 /// 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.