[llvm-commits] [llvm] r52434 - /llvm/trunk/lib/VMCore/Instructions.cpp

Dan Gohman gohman at apple.com
Tue Jun 17 16:25:49 PDT 2008


Author: djg
Date: Tue Jun 17 18:25:49 2008
New Revision: 52434

URL: http://llvm.org/viewvc/llvm-project?rev=52434&view=rev
Log:
In InsertValueInst's copy ctor, actually copy the operands.

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=52434&r1=52433&r2=52434&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue Jun 17 18:25:49 2008
@@ -1385,6 +1385,8 @@
   : 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,





More information about the llvm-commits mailing list