mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Fix the InsertAtEnd form of ShuffleVectorInst constructor to use
the correct type. llvm-svn: 80050
This commit is contained in:
parent
4d20610e6e
commit
1497a679f2
@ -1272,7 +1272,9 @@ ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
|
||||
ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask,
|
||||
const Twine &Name,
|
||||
BasicBlock *InsertAtEnd)
|
||||
: Instruction(V1->getType(), ShuffleVector,
|
||||
: Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(),
|
||||
cast<VectorType>(Mask->getType())->getNumElements()),
|
||||
ShuffleVector,
|
||||
OperandTraits<ShuffleVectorInst>::op_begin(this),
|
||||
OperandTraits<ShuffleVectorInst>::operands(this),
|
||||
InsertAtEnd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user