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 | 5f8809078f1ffd584feb0e23b626a65a1d1ea399 (patch) | |
tree | b5f23dc47c2d34e379238f6454e0d0a23b5867f9 /llvm/lib/Analysis | |
parent | 7ae4f5599ee34da7749df35b4e726ddd38b90c91 (diff) | |
download | bcm5719-llvm-5f8809078f1ffd584feb0e23b626a65a1d1ea399.tar.gz bcm5719-llvm-5f8809078f1ffd584feb0e23b626a65a1d1ea399.zip |
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
llvm-svn: 33704
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index 8a690feed1e..1bf6b50333e 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/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: |