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 | d8ca05f4eed300c81172b5c603c5780fa64cd29d (patch) | |
tree | 43daa85bda3e5fb4fa22dfa859b02056d7f00088 /llvm/lib/VMCore/Instructions.cpp | |
parent | 75f3732b23feb1c0f1f9164bd3e0cdc581092223 (diff) | |
download | bcm5719-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.cpp | 2 |
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, |