diff options
author | Chris Lattner <sabre@nondot.org> | 2005-06-09 02:59:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-06-09 02:59:00 +0000 |
commit | 5633cd13e257ae0a55840b4b310bfb3f81d3233a (patch) | |
tree | 05c83e17c7aabca97a8ffc9fdafa35205e9e2fac /lib/Transforms/IPO/LowerSetJmp.cpp | |
parent | 705b9e55f2ea484c81b9ea4841d2e3c868a313dd (diff) | |
download | llvm-5633cd13e257ae0a55840b4b310bfb3f81d3233a.tar.gz llvm-5633cd13e257ae0a55840b4b310bfb3f81d3233a.tar.bz2 llvm-5633cd13e257ae0a55840b4b310bfb3f81d3233a.tar.xz |
Fix a problem on 64-bit targets where we passed (int)0 through ... instead of
(void*)0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r-- | lib/Transforms/IPO/LowerSetJmp.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp index 3a86cb763b..7300aa8f19 100644 --- a/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/lib/Transforms/IPO/LowerSetJmp.cpp @@ -204,32 +204,32 @@ bool LowerSetJmp::doInitialization(Module& M) // void __llvm_sjljeh_init_setjmpmap(void**) InitSJMap = M.getOrInsertFunction("__llvm_sjljeh_init_setjmpmap", - Type::VoidTy, SBPPTy, 0); + Type::VoidTy, SBPPTy, NULL); // void __llvm_sjljeh_destroy_setjmpmap(void**) DestroySJMap = M.getOrInsertFunction("__llvm_sjljeh_destroy_setjmpmap", - Type::VoidTy, SBPPTy, 0); + Type::VoidTy, SBPPTy, NULL); // void __llvm_sjljeh_add_setjmp_to_map(void**, void*, unsigned) AddSJToMap = M.getOrInsertFunction("__llvm_sjljeh_add_setjmp_to_map", Type::VoidTy, SBPPTy, SBPTy, - Type::UIntTy, 0); + Type::UIntTy, NULL); // void __llvm_sjljeh_throw_longjmp(int*, int) ThrowLongJmp = M.getOrInsertFunction("__llvm_sjljeh_throw_longjmp", - Type::VoidTy, SBPTy, Type::IntTy, 0); + Type::VoidTy, SBPTy, Type::IntTy, NULL); // unsigned __llvm_sjljeh_try_catching_longjmp_exception(void **) TryCatchLJ = M.getOrInsertFunction("__llvm_sjljeh_try_catching_longjmp_exception", - Type::UIntTy, SBPPTy, 0); + Type::UIntTy, SBPPTy, NULL); // bool __llvm_sjljeh_is_longjmp_exception() IsLJException = M.getOrInsertFunction("__llvm_sjljeh_is_longjmp_exception", - Type::BoolTy, 0); + Type::BoolTy, NULL); // int __llvm_sjljeh_get_longjmp_value() GetLJValue = M.getOrInsertFunction("__llvm_sjljeh_get_longjmp_value", - Type::IntTy, 0); + Type::IntTy, NULL); return true; } |