Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.
authorHans Wennborg <hans@hanshq.net>
Wed, 31 Oct 2012 14:36:48 +0000 (14:36 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 31 Oct 2012 14:36:48 +0000 (14:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167117 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index 9a9ce8568f16c89f32d08c9172728ca1379683ef..b4678ae6999c24fa3aec65349e303798d642c5c5 100644 (file)
@@ -3251,7 +3251,7 @@ static Constant* ConstantFold(Instruction *I,
   if (CastInst *Cast = dyn_cast<CastInst>(I)) {
     Constant *A = dyn_cast<Constant>(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;