mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
stop passing vector into ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c9f92e1ff
commit
e433919686
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user