summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-06 16:15:49 +0000
committerChris Lattner <sabre@nondot.org>2002-05-06 16:15:49 +0000
commit3ad34b9c3c07460f46decb87c7b72c9c1392faa8 (patch)
tree9d28a1761ee32d20bfc75c56430bf374d8bfbe31 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
parent181cc32365ad2bba3a83905ff2c3fabb416d2438 (diff)
downloadbcm5719-llvm-3ad34b9c3c07460f46decb87c7b72c9c1392faa8.tar.gz
bcm5719-llvm-3ad34b9c3c07460f46decb87c7b72c9c1392faa8.zip
Change usage of isPointerType to use isa
llvm-svn: 2487
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index b9f8030a468..8ba41158fe4 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/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<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
OpenPOWER on IntegriCloud