mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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:
@ -734,8 +734,9 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
|
|||||||
// If this is the escape sequence for call, emit the tailcall/cc info.
|
// If this is the escape sequence for call, emit the tailcall/cc info.
|
||||||
const CallInst &CI = cast<CallInst>(I);
|
const CallInst &CI = cast<CallInst>(I);
|
||||||
++NumOperands;
|
++NumOperands;
|
||||||
if (NumOperands < 3) {
|
if (NumOperands <= 3) {
|
||||||
Slots[NumOperands-1] = (CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
|
Slots[NumOperands-1] =
|
||||||
|
(CI.getCallingConv() << 1)|unsigned(CI.isTailCall());
|
||||||
if (Slots[NumOperands-1] > MaxOpSlot)
|
if (Slots[NumOperands-1] > MaxOpSlot)
|
||||||
MaxOpSlot = Slots[NumOperands-1];
|
MaxOpSlot = Slots[NumOperands-1];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user