[llvm-commits] CVS: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 8 19:59:11 PDT 2005
Changes in directory llvm/lib/Transforms/IPO:
LowerSetJmp.cpp updated: 1.25 -> 1.26
---
Log message:
Fix a problem on 64-bit targets where we passed (int)0 through ... instead of
(void*)0.
---
Diffs of the changes: (+7 -7)
LowerSetJmp.cpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Index: llvm/lib/Transforms/IPO/LowerSetJmp.cpp
diff -u llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.25 llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.26
--- llvm/lib/Transforms/IPO/LowerSetJmp.cpp:1.25 Thu May 5 10:47:43 2005
+++ llvm/lib/Transforms/IPO/LowerSetJmp.cpp Wed Jun 8 21:59:00 2005
@@ -204,32 +204,32 @@
// 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;
}
More information about the llvm-commits
mailing list