aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-06 16:15:30 +0000
committerChris Lattner <sabre@nondot.org>2002-05-06 16:15:30 +0000
commit9b625030c8427a3bc56f5993c0b5b214c393042f (patch)
tree40bf688c425d93346f3f3a1119f4a9049682724e /lib/Analysis/IPA
parentd44023ecb7a699e52f119bec0eb86830989ff35a (diff)
downloadexternal_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.zip
external_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.gz
external_llvm-9b625030c8427a3bc56f5993c0b5b214c393042f.tar.bz2
Replace all usages of Type::isPointerType with isa<PointerType>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/FindUnsafePointerTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
index 627c7ff..1723a8e 100644
--- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
+++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp
@@ -57,7 +57,7 @@ bool FindUnsafePointerTypes::run(Module *Mod) {
for (const_inst_iterator I = inst_begin(M), E = inst_end(M); I != E; ++I) {
const Instruction *Inst = *I;
const Type *ITy = Inst->getType();
- if (ITy->isPointerType() && !UnsafeTypes.count((PointerType*)ITy))
+ if (isa<PointerType>(ITy) && !UnsafeTypes.count((PointerType*)ITy))
if (!isSafeInstruction(Inst)) {
UnsafeTypes.insert((PointerType*)ITy);