aboutsummaryrefslogtreecommitdiff
path: root/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
commit45d8b917bed115f904a33ca24cd0774d86f34fd8 (patch)
treebabfa136945175206c1355ba5b81f288359c7b2a /lib/ExecutionEngine/Interpreter/Execution.cpp
parent9b625030c8427a3bc56f5993c0b5b214c393042f (diff)
Change usage of isPointerType to use isa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2487 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index b9f8030a46..8ba41158fe 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<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