aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LowerAllocations.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-31 06:36:23 +0000
committerChris Lattner <sabre@nondot.org>2001-10-31 06:36:23 +0000
commit7ef6559718a18a20349d41c28b89bb8cbc1f1022 (patch)
treecd165827684fd9fc105e5f6761d32f70e10971c4 /lib/Transforms/Utils/LowerAllocations.cpp
parentbfe11108adef46a7e366d07c9d04afb88a1966a9 (diff)
Use the correct prototype for malloc and free
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r--lib/Transforms/Utils/LowerAllocations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp
index 945d941530..91f45d8206 100644
--- a/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/lib/Transforms/Utils/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