diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-05-15 18:25:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-05-15 18:25:13 +0000 |
| commit | 652e7bf8a8a571d3e48c6a4fd7571070da5a1111 (patch) | |
| tree | 6140a3cc065da56eae7feb7f7139fe4d8e517a9a /llvm/lib/Transforms/Scalar/LowerAllocations.cpp | |
| parent | 0e416df2b292e2b5c0dfe89ced8a610e852dd155 (diff) | |
| download | bcm5719-llvm-652e7bf8a8a571d3e48c6a4fd7571070da5a1111.tar.gz bcm5719-llvm-652e7bf8a8a571d3e48c6a4fd7571070da5a1111.zip | |
Fix long standing bug
llvm-svn: 6232
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerAllocations.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerAllocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp index 68fb74efaf6..c5014b48e6a 100644 --- a/llvm/lib/Transforms/Scalar/LowerAllocations.cpp +++ b/llvm/lib/Transforms/Scalar/LowerAllocations.cpp @@ -117,7 +117,7 @@ bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) { } 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), |

