Skip to content
Snippets Groups Projects
Commit d8ca05f4 authored by Dan Gohman's avatar Dan Gohman
Browse files

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

llvm-svn: 52434
parent 75f3732b
No related branches found
No related tags found
No related merge requests found
...@@ -1385,6 +1385,8 @@ InsertValueInst::InsertValueInst(const InsertValueInst &IVI) ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment