diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-06-09 03:32:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-06-09 03:32:54 +0000 |
| commit | 1609a541cd8bf1feacb8984274612396627a9be5 (patch) | |
| tree | 0f652d80c59c567ff162e4459ee0e80ae8bc957d /llvm/lib | |
| parent | fbc45f10d0c3411ea02933fb98b319b016611a23 (diff) | |
| download | bcm5719-llvm-1609a541cd8bf1feacb8984274612396627a9be5.tar.gz bcm5719-llvm-1609a541cd8bf1feacb8984274612396627a9be5.zip | |
Fix a 64-bit problem, passing (int)0 through ... instead of (void*)0
llvm-svn: 22206
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerInvoke.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp index b0c807f958a..fe22b4be847 100644 --- a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp @@ -116,14 +116,14 @@ bool LowerInvoke::doInitialization(Module &M) { 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 @@ bool LowerInvoke::doInitialization(Module &M) { WriteFn = 0; } else { WriteFn = M.getOrInsertFunction("write", Type::VoidTy, Type::IntTy, - VoidPtrTy, Type::IntTy, 0); + VoidPtrTy, Type::IntTy, NULL); } return true; } |

