mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Fix long standing bug
llvm-svn: 6232
This commit is contained in:
parent
648e9d9cff
commit
d8234cfa3a
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user