stop passing vector into ctors
authorChris Lattner <sabre@nondot.org>
Tue, 13 Feb 2007 01:53:54 +0000 (01:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Feb 2007 01:53:54 +0000 (01:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34218 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Reader.cpp

index 376c0702a3e77b36a7c9a29ccf1c7e7928210f96..0299da6d0442c8e0bab337eb091d0a6812b14214 100644 (file)
@@ -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;
     }