aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-09-30 08:01:04 +0000
committerChris Lattner <sabre@nondot.org>2007-09-30 08:01:04 +0000
commitb7f4f2adb016c248794af74b093625835a1c4132 (patch)
treeb2340d3d384a8b4be1fe8303d87ccae19863674b
parent3a63da7053b07583fe3881388ef35181b2d34d3e (diff)
simplify an expression
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42477 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/SemaDecl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index ac2be7faeb..e0ce057702 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -28,8 +28,7 @@ using namespace clang;
Sema::DeclTy *Sema::isTypeName(const IdentifierInfo &II, Scope *S) const {
Decl *IIDecl = II.getFETokenInfo<Decl>();
- if (dyn_cast_or_null<TypedefDecl>(IIDecl) ||
- dyn_cast_or_null<ObjcInterfaceDecl>(IIDecl))
+ if (isa<TypedefDecl>(IIDecl) || isa<ObjcInterfaceDecl>(IIDecl))
return IIDecl;
return 0;
}