aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-17 23:25:49 +0000
committerDan Gohman <gohman@apple.com>2008-06-17 23:25:49 +0000
commit80b9626ee30a2cb32641ed15d00c0c1a634e275a (patch)
tree3c8a8fde4f3a107cbc7478d812e45aaf5a764911 /lib/VMCore/Instructions.cpp
parent2960ed4b85d49fbdb3270605a1bfdbfbdcb97d62 (diff)
downloadexternal_llvm-80b9626ee30a2cb32641ed15d00c0c1a634e275a.zip
external_llvm-80b9626ee30a2cb32641ed15d00c0c1a634e275a.tar.gz
external_llvm-80b9626ee30a2cb32641ed15d00c0c1a634e275a.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.cpp2
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,