From e433919686aee9c95207d93d85aeaca68a5b2546 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 Feb 2007 01:53:54 +0000 Subject: [PATCH] stop passing vector into ctors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34218 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/Reader.cpp | 4 ++-- 1 file 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 &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(Result)->setTailCall(); if (CallingConv) cast(Result)->setCallingConv(CallingConv); break; @@ -756,7 +756,7 @@ void BytecodeReader::ParseInstruction(SmallVector &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(Result)->setCallingConv(CallingConv); break; }