Change usage of isPointerType to use isa

llvm-svn: 2487
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index b9f8030..8ba4115 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -776,7 +776,7 @@
 }
 
 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