From: Hans Wennborg Date: Wed, 31 Oct 2012 14:36:48 +0000 (+0000) Subject: Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=28578661385dc165ffe5171f2b9dad26f0a13cf9;p=oota-llvm.git Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167117 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 9a9ce8568f1..b4678ae6999 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -3251,7 +3251,7 @@ static Constant* ConstantFold(Instruction *I, if (CastInst *Cast = dyn_cast(I)) { Constant *A = dyn_cast(I->getOperand(0)); if (!A) A = ConstantPool.lookup(I->getOperand(0)); - if (!A) return false; + if (!A) return NULL; Constant *C = ConstantExpr::getCast(Cast->getOpcode(), A, Cast->getDestTy()); return C;