aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Attributes.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-02-16 11:11:14 +0000
committerDuncan Sands <baldrick@free.fr>2010-02-16 11:11:14 +0000
commit10343d91c52ddbfd7572032a95724f0c1ba10c7b (patch)
tree3e65bf258ff243ac3c149c418c7f201fbc9097d6 /lib/VMCore/Attributes.cpp
parentccc5ac38912d078a8413fef4f710685a16b2f858 (diff)
downloadexternal_llvm-10343d91c52ddbfd7572032a95724f0c1ba10c7b.tar.gz
external_llvm-10343d91c52ddbfd7572032a95724f0c1ba10c7b.tar.bz2
external_llvm-10343d91c52ddbfd7572032a95724f0c1ba10c7b.zip
There are two ways of checking for a given type, for example isa<PointerType>(T)
and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r--lib/VMCore/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index ff0cc9bf00..a000aee2ab 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -93,7 +93,7 @@ Attributes Attribute::typeIncompatible(const Type *Ty) {
// Attributes that only apply to integers.
Incompatible |= SExt | ZExt;
- if (!isa<PointerType>(Ty))
+ if (!Ty->isPointerTy())
// Attributes that only apply to pointers.
Incompatible |= ByVal | Nest | NoAlias | StructRet | NoCapture;