[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 8 20:33:05 PDT 2005
Changes in directory llvm/lib/Transforms/Scalar:
LowerInvoke.cpp updated: 1.25 -> 1.26
---
Log message:
Fix a 64-bit problem, passing (int)0 through ... instead of (void*)0
---
Diffs of the changes: (+4 -4)
LowerInvoke.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Transforms/Scalar/LowerInvoke.cpp
diff -u llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.25 llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.26
--- llvm/lib/Transforms/Scalar/LowerInvoke.cpp:1.25 Fri May 13 01:27:02 2005
+++ llvm/lib/Transforms/Scalar/LowerInvoke.cpp Wed Jun 8 22:32:54 2005
@@ -116,14 +116,14 @@
Constant::getNullValue(PtrJBList),
"llvm.sjljeh.jblist", &M);
SetJmpFn = M.getOrInsertFunction("llvm.setjmp", Type::IntTy,
- PointerType::get(JmpBufTy), 0);
+ PointerType::get(JmpBufTy), NULL);
LongJmpFn = M.getOrInsertFunction("llvm.longjmp", Type::VoidTy,
PointerType::get(JmpBufTy),
- Type::IntTy, 0);
+ Type::IntTy, NULL);
}
// We need the 'write' and 'abort' functions for both models.
- AbortFn = M.getOrInsertFunction("abort", Type::VoidTy, 0);
+ AbortFn = M.getOrInsertFunction("abort", Type::VoidTy, NULL);
// Unfortunately, 'write' can end up being prototyped in several different
// ways. If the user defines a three (or more) operand function named 'write'
@@ -140,7 +140,7 @@
WriteFn = 0;
} else {
WriteFn = M.getOrInsertFunction("write", Type::VoidTy, Type::IntTy,
- VoidPtrTy, Type::IntTy, 0);
+ VoidPtrTy, Type::IntTy, NULL);
}
return true;
}
More information about the llvm-commits
mailing list