From 6d23d97e903e1f820d3eeb470196894a476625ee Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 15 May 2003 18:25:13 +0000 Subject: [PATCH] Fix long standing bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6232 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LowerAllocations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 68fb74efaf6..c5014b48e6a 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(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(1, MCast), -- 2.40.0