mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
jmp_buf is really a pointer type that is passed around...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bda5f52bd
commit
2fa42a816d
@ -1178,12 +1178,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
||||
return;
|
||||
|
||||
case LLVMIntrinsic::setjmp:
|
||||
Out << "setjmp((jmp_buf)";
|
||||
Out << "setjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ")";
|
||||
return;
|
||||
case LLVMIntrinsic::longjmp:
|
||||
Out << "longjmp((jmp_buf)";
|
||||
Out << "longjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(2));
|
||||
|
@ -1178,12 +1178,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
||||
return;
|
||||
|
||||
case LLVMIntrinsic::setjmp:
|
||||
Out << "setjmp((jmp_buf)";
|
||||
Out << "setjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ")";
|
||||
return;
|
||||
case LLVMIntrinsic::longjmp:
|
||||
Out << "longjmp((jmp_buf)";
|
||||
Out << "longjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ", ";
|
||||
writeOperand(I.getOperand(2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user