mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 03:46:27 +00:00
Fix misencoding of calling conventions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7dd29aadf9
commit
ebf8e6cd92
@ -734,8 +734,9 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
|
||||
// If this is the escape sequence for call, emit the tailcall/cc info.
|
||||
const CallInst &CI = cast<CallInst>(I);
|
||||
++NumOperands;
|
||||
if (NumOperands < 3) {
|
||||
Slots[NumOperands-1] = (CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
|
||||
if (NumOperands <= 3) {
|
||||
Slots[NumOperands-1] =
|
||||
(CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
|
||||
if (Slots[NumOperands-1] > MaxOpSlot)
|
||||
MaxOpSlot = Slots[NumOperands-1];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user