From a1fcd77ccfc61087dfad4fad69752a414179836c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 17 Oct 2008 00:56:52 +0000 Subject: [PATCH] Use 0 instead of false to return a null pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57660 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopUnswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index fbfe2977278..455338b3341 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -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(Cond)) return false; + if (isa(Cond)) return 0; // TODO: Handle: br (VARIANT|INVARIANT). // TODO: Hoist simple expressions out of loops.