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 llvm-svn: 32062
This commit is contained in:
parent
5145977cd8
commit
d1d5693149
|
@ -743,7 +743,7 @@ static Constant *CastConstantPacked(ConstantPacked *CP,
|
|||
(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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue