Skip to content
Snippets Groups Projects
Commit 7e6a0d8c authored by Chris Lattner's avatar Chris Lattner
Browse files

Use the correct prototype for malloc and free

llvm-svn: 1066
parent 20726ed3
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
bool LowerAllocations::doPassInitialization(Module *M) { bool LowerAllocations::doPassInitialization(Module *M) {
bool Changed = false; bool Changed = false;
const MethodType *MallocType = const MethodType *MallocType =
MethodType::get(PointerType::get(Type::UByteTy), MethodType::get(PointerType::get(Type::SByteTy),
vector<const Type*>(1, Type::UIntTy), false); vector<const Type*>(1, Type::UIntTy), false);
SymbolTable *SymTab = M->getSymbolTableSure(); SymbolTable *SymTab = M->getSymbolTableSure();
...@@ -37,7 +37,7 @@ bool LowerAllocations::doPassInitialization(Module *M) { ...@@ -37,7 +37,7 @@ bool LowerAllocations::doPassInitialization(Module *M) {
const MethodType *FreeType = const MethodType *FreeType =
MethodType::get(Type::VoidTy, MethodType::get(Type::VoidTy,
vector<const Type*>(1, PointerType::get(Type::UByteTy)), vector<const Type*>(1, PointerType::get(Type::SByteTy)),
false); false);
// Check for a definition of free // Check for a definition of free
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment