mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
In InsertValueInst's copy ctor, actually copy the operands.
llvm-svn: 52434
This commit is contained in:
parent
c1ac0c1c41
commit
d9d529d7ed
@ -1385,6 +1385,8 @@ InsertValueInst::InsertValueInst(const InsertValueInst &IVI)
|
|||||||
: Instruction(IVI.getType(), InsertValue,
|
: Instruction(IVI.getType(), InsertValue,
|
||||||
OperandTraits<InsertValueInst>::op_begin(this), 2),
|
OperandTraits<InsertValueInst>::op_begin(this), 2),
|
||||||
Indices(IVI.Indices) {
|
Indices(IVI.Indices) {
|
||||||
|
Op<0>() = IVI.getOperand(0);
|
||||||
|
Op<1>() = IVI.getOperand(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
InsertValueInst::InsertValueInst(Value *Agg,
|
InsertValueInst::InsertValueInst(Value *Agg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user