[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp
Chris Lattner
sabre at nondot.org
Thu Nov 30 21:55:40 PST 2006
Changes in directory llvm/lib/VMCore:
ConstantFolding.cpp updated: 1.102 -> 1.103
---
Log message:
Fix a typo introduced by the cast patch that horribly broke a lot of vector
code. Testcase here: Transforms/ConstProp/2006-11-30-vector-cast.ll
---
Diffs of the changes: (+1 -1)
ConstantFolding.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/ConstantFolding.cpp
diff -u llvm/lib/VMCore/ConstantFolding.cpp:1.102 llvm/lib/VMCore/ConstantFolding.cpp:1.103
--- llvm/lib/VMCore/ConstantFolding.cpp:1.102 Thu Nov 30 21:56:30 2006
+++ llvm/lib/VMCore/ConstantFolding.cpp Thu Nov 30 23:55:25 2006
@@ -743,7 +743,7 @@
(SrcEltTy->isFloatingPoint() && DstEltTy->isFloatingPoint())) {
for (unsigned i = 0; i != SrcNumElts; ++i)
Result.push_back(
- ConstantExpr::getCast(Instruction::BitCast, CP->getOperand(1),
+ ConstantExpr::getCast(Instruction::BitCast, CP->getOperand(i),
DstEltTy));
return ConstantPacked::get(Result);
}
More information about the llvm-commits
mailing list