summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitd8ca05f4eed300c81172b5c603c5780fa64cd29d (patch)
tree43daa85bda3e5fb4fa22dfa859b02056d7f00088 /llvm/lib/VMCore/Instructions.cpp
parent75f3732b23feb1c0f1f9164bd3e0cdc581092223 (diff)
downloadbcm5719-llvm-d8ca05f4eed300c81172b5c603c5780fa64cd29d.tar.gz
bcm5719-llvm-d8ca05f4eed300c81172b5c603c5780fa64cd29d.zip
In InsertValueInst's copy ctor, actually copy the operands.
llvm-svn: 52434
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 604f9f94a1c..5b8e2917152 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud