mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a2f99b63cd
commit
7da3bde866
@ -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…
x
Reference in New Issue
Block a user