projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b84f9
)
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
author
Chris Lattner
<sabre@nondot.org>
Wed, 31 Jan 2007 18:04:55 +0000
(18:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 31 Jan 2007 18:04:55 +0000
(18:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33704
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ConstantFolding.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ConstantFolding.cpp
b/lib/Analysis/ConstantFolding.cpp
index 8a690feed1e5930d38ed590122e94b1168f46ca5..1bf6b50333eeb94bcb85ea60e3e1dda186312d1b 100644
(file)
--- 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: