Don't forget to link type names together too. Fix for Olden/mst benchmark
[oota-llvm.git] / lib / Transforms / Utils / LowerAllocations.cpp
index 945d941530cb63e76b6b2810fe92ba5fa70f84e9..91f45d8206957138883b5ae1353f9b3735b463a5 100644 (file)
@@ -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