Fix false -> NULL conversion from r167115 spotted by Benjamin Kramer.

llvm-svn: 167117
This commit is contained in:
Hans Wennborg 2012-10-31 14:36:48 +00:00
parent 83badeb894
commit 39a7eef3d9

View 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;