summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-11 22:04:54 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-11 22:04:54 +0000
commit323ade5ac8228f1eeb926cbd5a16a59bd7372b75 (patch)
tree58484e879e45e242c820afab149ea37311a69943 /clang/lib/Sema
parent99789a7a76de9675f0abe5c87c35887b40274ab6 (diff)
downloadbcm5719-llvm-323ade5ac8228f1eeb926cbd5a16a59bd7372b75.tar.gz
bcm5719-llvm-323ade5ac8228f1eeb926cbd5a16a59bd7372b75.zip
Use isa<ElaboratedType> rather than getAs<ElaboratedType>, since the
latter may (eventually) perform multiple levels of desugaring (thus breaking the newly-added tests) and the former is faster. Thanks, John! llvm-svn: 93192
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index d5ca944c1d9..dc91431cdd7 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -832,7 +832,7 @@ void Sema::MergeTypeDefDecl(TypedefDecl *New, LookupResult &OldDecls) {
// };
//
// since that was the intent of DR56.
- if (New->getUnderlyingType()->getAs<ElaboratedType>())
+ if (isa<ElaboratedType>(New->getUnderlyingType()))
return;
Diag(New->getLocation(), diag::err_redefinition)
OpenPOWER on IntegriCloud