[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LowerAllocations.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu May 15 13:26:01 PDT 2003


Changes in directory llvm/lib/Transforms/Scalar:

LowerAllocations.cpp updated: 1.35 -> 1.36

---
Log message:

Fix long standing bug


---
Diffs of the changes:

Index: llvm/lib/Transforms/Scalar/LowerAllocations.cpp
diff -u llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.35 llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.36
--- llvm/lib/Transforms/Scalar/LowerAllocations.cpp:1.35	Wed Apr 23 11:37:42 2003
+++ llvm/lib/Transforms/Scalar/LowerAllocations.cpp	Thu May 15 13:25:13 2003
@@ -117,7 +117,7 @@
     } else if (FreeInst *FI = dyn_cast<FreeInst>(I)) {
       // Cast the argument to free into a ubyte*...
       CastInst *MCast = new CastInst(FI->getOperand(0), 
-                                     PointerType::get(Type::UByteTy), "", I);
+                                     PointerType::get(Type::SByteTy), "", I);
       
       // Insert a call to the free function...
       CallInst *FCall = new CallInst(FreeFunc, std::vector<Value*>(1, MCast),





More information about the llvm-commits mailing list