From 80b9626ee30a2cb32641ed15d00c0c1a634e275a 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52434 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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, -- 2.34.1