diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-28 19:29:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-28 19:29:34 +0000 |
commit | 2fa42a816dd655739beff8887d5c3d22f1ede751 (patch) | |
tree | 298a1bfdb1fdce86308f5e929fde6c3ba8d94fd1 | |
parent | 9bda5f52bd347d028efa33ab057ff8b61341f920 (diff) | |
download | external_llvm-2fa42a816dd655739beff8887d5c3d22f1ede751.zip external_llvm-2fa42a816dd655739beff8887d5c3d22f1ede751.tar.gz external_llvm-2fa42a816dd655739beff8887d5c3d22f1ede751.tar.bz2 |
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
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 57a2b15..d38c6c7 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 57a2b15..d38c6c7 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)); |