Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll

llvm-svn: 33704
This commit is contained in:
Chris Lattner 2007-01-31 18:04:55 +00:00
parent 7ae4f5599e
commit 5f8809078f
1 changed files with 1 additions and 1 deletions

View File

@ -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: