1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

In InsertValueInst's copy ctor, actually copy the operands.

llvm-svn: 52434
This commit is contained in:
Dan Gohman 2008-06-17 23:25:49 +00:00
parent c1ac0c1c41
commit d9d529d7ed

View File

@ -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,