forked from OSchip/llvm-project
In InsertValueInst's copy ctor, actually copy the operands.
llvm-svn: 52434
This commit is contained in:
parent
75f3732b23
commit
d8ca05f4ee
|
@ -1385,6 +1385,8 @@ InsertValueInst::InsertValueInst(const InsertValueInst &IVI)
|
|||
: Instruction(IVI.getType(), InsertValue,
|
||||
OperandTraits<InsertValueInst>::op_begin(this), 2),
|
||||
Indices(IVI.Indices) {
|
||||
Op<0>() = IVI.getOperand(0);
|
||||
Op<1>() = IVI.getOperand(1);
|
||||
}
|
||||
|
||||
InsertValueInst::InsertValueInst(Value *Agg,
|
||||
|
|
Loading…
Reference in New Issue