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 | 6d23d97e903e1f820d3eeb470196894a476625ee (patch) | |
tree | 4cc11bb910b1ad7309bdf897bf224591522a7bac /lib/Transforms/Utils/LowerAllocations.cpp | |
parent | 39c987a6a2e2cd32b83cf100dcfe094dec682165 (diff) |
Fix long standing bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 68fb74efaf..c5014b48e6 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/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), |