aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-06-04 21:29:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-06-04 21:29:28 +0000
commitc32ef4bc0b17f79d96b672143d5e5fba9e39ea8d (patch)
treea0036f1fb40d62d882f4a7f7ab7b1bdb882a5375 /clang/lib/AST/DeclBase.cpp
parent8362518c6e51476a97f429477949c6d60d12d9bb (diff)
downloadllvm-c32ef4bc0b17f79d96b672143d5e5fba9e39ea8d.zip
llvm-c32ef4bc0b17f79d96b672143d5e5fba9e39ea8d.tar.gz
llvm-c32ef4bc0b17f79d96b672143d5e5fba9e39ea8d.tar.bz2
Convert MemberExpr creation and serialization to work the same way as
most / all other Expr subclasses. llvm-svn: 362551
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 3198548..f5853b4 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -920,6 +920,7 @@ bool Decl::AccessDeclContextSanity() const {
if (isa<TranslationUnitDecl>(this) ||
isa<TemplateTypeParmDecl>(this) ||
isa<NonTypeTemplateParmDecl>(this) ||
+ !getDeclContext() ||
!isa<CXXRecordDecl>(getDeclContext()) ||
isInvalidDecl() ||
isa<StaticAssertDecl>(this) ||