summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/DeclBase.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 1e7ef549b43..812c362acd3 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -171,10 +171,8 @@ void Decl::invalidateAttrs() {
}
}
-const Attr *Decl::getAttrs() const {
- if (!HasAttrs)
- return 0;
-
+const Attr *Decl::getAttrsImpl() const {
+ assert(HasAttrs && "getAttrs() should verify this!");
return (*DeclAttrs)[this];
}
OpenPOWER on IntegriCloud