From d9d529d7ed0242256524b68c086e2ea286130711 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 17 Jun 2008 23:25:49 +0000 Subject: [PATCH] In InsertValueInst's copy ctor, actually copy the operands. llvm-svn: 52434 --- lib/VMCore/Instructions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 604f9f94a1c..5b8e2917152 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -1385,6 +1385,8 @@ InsertValueInst::InsertValueInst(const InsertValueInst &IVI) : Instruction(IVI.getType(), InsertValue, OperandTraits::op_begin(this), 2), Indices(IVI.Indices) { + Op<0>() = IVI.getOperand(0); + Op<1>() = IVI.getOperand(1); } InsertValueInst::InsertValueInst(Value *Agg,