Fix long standing bug

llvm-svn: 6232
This commit is contained in:
Chris Lattner 2003-05-15 18:25:13 +00:00
parent 0e416df2b2
commit 652e7bf8a8
1 changed files with 1 additions and 1 deletions

View File

@ -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),