1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

simplify some code

llvm-svn: 81961
This commit is contained in:
Chris Lattner 2009-09-16 00:08:07 +00:00
parent f091792f40
commit 6302039748

View File

@ -379,7 +379,7 @@ Constant *llvm::ConstantFoldInstruction(Instruction *I, LLVMContext &Context,
return ConstantFoldCompareInstOperands(CI->getPredicate(),
Ops.data(), Ops.size(),
Context, TD);
else
return ConstantFoldInstOperands(I->getOpcode(), I->getType(),
Ops.data(), Ops.size(), Context, TD);
}
@ -398,7 +398,6 @@ Constant *llvm::ConstantFoldConstantExpression(ConstantExpr *CE,
return ConstantFoldCompareInstOperands(CE->getPredicate(),
Ops.data(), Ops.size(),
Context, TD);
else
return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(),
Ops.data(), Ops.size(), Context, TD);
}