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); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits