[llvm-commits] CVS: llvm/lib/Analysis/ConstantFolding.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 31 10:05:23 PST 2007
Changes in directory llvm/lib/Analysis:
ConstantFolding.cpp updated: 1.14 -> 1.15
---
Log message:
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
---
Diffs of the changes: (+1 -1)
ConstantFolding.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Analysis/ConstantFolding.cpp
diff -u llvm/lib/Analysis/ConstantFolding.cpp:1.14 llvm/lib/Analysis/ConstantFolding.cpp:1.15
--- llvm/lib/Analysis/ConstantFolding.cpp:1.14 Tue Jan 30 22:42:05 2007
+++ llvm/lib/Analysis/ConstantFolding.cpp Wed Jan 31 12:04:55 2007
@@ -210,7 +210,7 @@
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:
More information about the llvm-commits
mailing list