summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-17 01:20:38 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-17 01:20:38 +0000
commitb825c0ddc510d8aa0cce9b4065cb8e5dace6bc39 (patch)
treecd576de18eb9d3fe372b2471a676e0a2cc6782e1 /clang/lib/AST/DeclBase.cpp
parent95d401de9dabfe99c54dd484a780f4cddab2c26a (diff)
downloadbcm5719-llvm-b825c0ddc510d8aa0cce9b4065cb8e5dace6bc39.tar.gz
bcm5719-llvm-b825c0ddc510d8aa0cce9b4065cb8e5dace6bc39.zip
Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), Type::getAsMemberPointerType(), Type::getAsTagType(), and Type::getAsRecordType() with their Type::getAs<XXX> equivalents.
llvm-svn: 76139
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 96ba19b9a6b..2d276614f22 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -473,7 +473,7 @@ DeclContext *DeclContext::getPrimaryContext() {
if (DeclKind >= Decl::TagFirst && DeclKind <= Decl::TagLast) {
// If this is a tag type that has a definition or is currently
// being defined, that definition is our primary context.
- if (const TagType *TagT =cast<TagDecl>(this)->TypeForDecl->getAsTagType())
+ if (const TagType *TagT =cast<TagDecl>(this)->TypeForDecl->getAs<TagType>())
if (TagT->isBeingDefined() ||
(TagT->getDecl() && TagT->getDecl()->isDefinition()))
return TagT->getDecl();
OpenPOWER on IntegriCloud