forked from OSchip/llvm-project
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
llvm-svn: 33704
This commit is contained in:
parent
7ae4f5599e
commit
5f8809078f
|
@ -210,7 +210,7 @@ Constant *llvm::ConstantFoldInstOperands(const Instruction* I,
|
|||
case Instruction::Call:
|
||||
if (Function *F = dyn_cast<Function>(Ops[0]))
|
||||
if (canConstantFoldCallTo(F))
|
||||
return ConstantFoldCall(F, Ops+1, NumOps);
|
||||
return ConstantFoldCall(F, Ops+1, NumOps-1);
|
||||
return 0;
|
||||
case Instruction::ICmp:
|
||||
case Instruction::FCmp:
|
||||
|
|
Loading…
Reference in New Issue