Change usage of isPointerType to use isa

llvm-svn: 2487
This commit is contained in:
Chris Lattner 2002-05-06 16:15:49 +00:00
parent fd8d5b852c
commit 8898eec72c

View File

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