From: Chris Lattner Date: Sat, 28 Jun 2003 19:29:34 +0000 (+0000) Subject: jmp_buf is really a pointer type that is passed around... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2fa42a816dd655739beff8887d5c3d22f1ede751;p=oota-llvm.git 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 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 57a2b15563c..d38c6c7e5ea 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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)); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 57a2b15563c..d38c6c7e5ea 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -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));