summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4d8861efaaf796acbad0dc9f33e1e064418cb6c5 (patch)
treecf7dbebef17cdfd375efd7f5a03145249f1ac888 /llvm/lib/Bytecode
parentb612316f2053afa564b893a5ea7e21c62861eff4 (diff)
downloadbcm5719-llvm-4d8861efaaf796acbad0dc9f33e1e064418cb6c5.tar.gz
bcm5719-llvm-4d8861efaaf796acbad0dc9f33e1e064418cb6c5.zip
stop passing vector into ctors
llvm-svn: 34218
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 376c0702a3e..0299da6d044 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud