git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167117
91177308-0d34-0410-b5e6-
96231b3b80d8
if (CastInst *Cast = dyn_cast<CastInst>(I)) {
Constant *A = dyn_cast<Constant>(I->getOperand(0));
if (!A) A = ConstantPool.lookup(I->getOperand(0));
if (CastInst *Cast = dyn_cast<CastInst>(I)) {
Constant *A = dyn_cast<Constant>(I->getOperand(0));
if (!A) A = ConstantPool.lookup(I->getOperand(0));
Constant *C = ConstantExpr::getCast(Cast->getOpcode(), A, Cast->getDestTy());
return C;
Constant *C = ConstantExpr::getCast(Cast->getOpcode(), A, Cast->getDestTy());
return C;