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 /lib/Target/CBackend/CBackend.cpp | |
parent | 9bda5f52bd347d028efa33ab057ff8b61341f920 (diff) |
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
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 57a2b15563..d38c6c7e5e 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)); |