aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index c06b1d9914..c8fb386804 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -739,16 +739,12 @@ QualType TypedefType::LookThroughTypedefs() const {
}
}
-bool RecordType::classof(const Type *T) {
- if (const TagType *TT = dyn_cast<TagType>(T))
- return isa<RecordDecl>(TT->getDecl());
- return false;
+bool RecordType::classof(const TagType *TT) {
+ return isa<RecordDecl>(TT->getDecl());
}
-bool EnumType::classof(const Type *T) {
- if (const TagType *TT = dyn_cast<TagType>(T))
- return isa<EnumDecl>(TT->getDecl());
- return false;
+bool EnumType::classof(const TagType *TT) {
+ return isa<EnumDecl>(TT->getDecl());
}