diff options
author | Chris Lattner <sabre@nondot.org> | 2007-01-31 18:04:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-01-31 18:04:55 +0000 |
commit | ad58eb34342f70f094008e6d08cb4ed814754e64 (patch) | |
tree | 592dfa670df785961ad5b6489850cf8d934553cc /lib/Analysis/ConstantFolding.cpp | |
parent | b5b84f92bf5b5d075cb7fa8f67fa94d062aebfe7 (diff) |
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index 8a690feed1..1bf6b50333 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -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: |