diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-31 06:36:23 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-31 06:36:23 +0000 |
| commit | 7e6a0d8c17d416df014b546b5b5fe5f692357f86 (patch) | |
| tree | c3f9ffeb1237af7f849e8d41aaeb2d84e1a5e696 /llvm/lib/Transforms | |
| parent | 20726ed31b3af39ff5b47e9cc9a2c26b162c99ed (diff) | |
| download | bcm5719-llvm-7e6a0d8c17d416df014b546b5b5fe5f692357f86.tar.gz bcm5719-llvm-7e6a0d8c17d416df014b546b5b5fe5f692357f86.zip | |
Use the correct prototype for malloc and free
llvm-svn: 1066
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index 945d941530c..91f45d82069 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp @@ -22,7 +22,7 @@ bool LowerAllocations::doPassInitialization(Module *M) { bool Changed = false; const MethodType *MallocType = - MethodType::get(PointerType::get(Type::UByteTy), + MethodType::get(PointerType::get(Type::SByteTy), vector<const Type*>(1, Type::UIntTy), false); SymbolTable *SymTab = M->getSymbolTableSure(); @@ -37,7 +37,7 @@ bool LowerAllocations::doPassInitialization(Module *M) { const MethodType *FreeType = MethodType::get(Type::VoidTy, - vector<const Type*>(1, PointerType::get(Type::UByteTy)), + vector<const Type*>(1, PointerType::get(Type::SByteTy)), false); // Check for a definition of free |

