summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 01:53:54 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 01:53:54 +0000
commite433919686aee9c95207d93d85aeaca68a5b2546 (patch)
tree2e297a19767ac8746d2e2ad81a492b884f199986 /lib/Bytecode
parent0c9f92e1ff64ee56724eae444a0442b02f83d0a8 (diff)
stop passing vector into ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index 376c0702a3e..0299da6d044 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -702,7 +702,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
Params.push_back(getValue(Oprnds[i], Oprnds[i+1]));
}
- Result = new CallInst(F, Params);
+ Result = new CallInst(F, &Params[0], Params.size());
if (isTailCall) cast<CallInst>(Result)->setTailCall();
if (CallingConv) cast<CallInst>(Result)->setCallingConv(CallingConv);
break;
@@ -756,7 +756,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
Params.push_back(getValue(Oprnds[i], Oprnds[i+1]));
}
- Result = new InvokeInst(F, Normal, Except, Params);
+ Result = new InvokeInst(F, Normal, Except, &Params[0], Params.size());
if (CallingConv) cast<InvokeInst>(Result)->setCallingConv(CallingConv);
break;
}