From 45d8b917bed115f904a33ca24cd0774d86f34fd8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 6 May 2002 16:15:49 +0000 Subject: [PATCH] Change usage of isPointerType to use isa git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2487 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Execution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index b9f8030a468..8ba41158fe4 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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(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