diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-17 23:25:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-17 23:25:49 +0000 |
commit | 6f824e634372eb962deefe1398bdd993b919a459 (patch) | |
tree | 3c8a8fde4f3a107cbc7478d812e45aaf5a764911 /lib/VMCore/Instructions.cpp | |
parent | 9e60f9c3fa250ceffcf0b51e9d32e13bfc4e347e (diff) | |
download | external_llvm-6f824e634372eb962deefe1398bdd993b919a459.zip external_llvm-6f824e634372eb962deefe1398bdd993b919a459.tar.gz external_llvm-6f824e634372eb962deefe1398bdd993b919a459.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 604f9f9..5b8e291 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<InsertValueInst>::op_begin(this), 2), Indices(IVI.Indices) { + Op<0>() = IVI.getOperand(0); + Op<1>() = IVI.getOperand(1); } InsertValueInst::InsertValueInst(Value *Agg, |