Replace all usages of Type::isPointerType with isa<PointerType>
llvm-svn: 2486
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
index d06ac17..8cf36f8 100644
--- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
+++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
@@ -277,7 +277,7 @@
// Otherwise it needs to be an integer or a NULL pointer
if (! CPV->getType()->isIntegral() &&
- ! (CPV->getType()->isPointerType() &&
+ ! (isa<PointerType>(CPV->getType()) &&
CPV->isNullValue()))
return opType;
@@ -287,7 +287,7 @@
// unsigned constants to signed).
//
int64_t intValue;
- if (CPV->getType()->isPointerType())
+ if (isa<PointerType>(CPV->getType()))
{
intValue = 0;
}