mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-12 15:51:35 +00:00
Change usage of isPointerType to use isa
llvm-svn: 2487
This commit is contained in:
parent
fd8d5b852c
commit
8898eec72c
@ -776,7 +776,7 @@ void Interpreter::executeAllocInst(AllocationInst *I, ExecutionContext &SF) {
|
||||
}
|
||||
|
||||
static void executeFreeInst(FreeInst *I, ExecutionContext &SF) {
|
||||
assert(I->getOperand(0)->getType()->isPointerType() && "Freeing nonptr?");
|
||||
assert(isa<PointerType>(I->getOperand(0)->getType()) && "Freeing nonptr?");
|
||||
GenericValue Value = getOperandValue(I->getOperand(0), SF);
|
||||
// TODO: Check to make sure memory is allocated
|
||||
free((void*)Value.PointerVal); // Free memory
|
||||
|
Loading…
x
Reference in New Issue
Block a user