Skip to content
Snippets Groups Projects
Commit a45855fc authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

Disable Decl::CheckAccessDeclContext() temporarily.

llvm-svn: 107478
parent 373a83ab
No related branches found
No related tags found
No related merge requests found
...@@ -464,14 +464,16 @@ SourceLocation Decl::getBodyRBrace() const { ...@@ -464,14 +464,16 @@ SourceLocation Decl::getBodyRBrace() const {
#ifndef NDEBUG #ifndef NDEBUG
void Decl::CheckAccessDeclContext() const { void Decl::CheckAccessDeclContext() const {
// FIXME: Disable this until rdar://8146294 "access specifier for inner class
// templates is not set or checked" is fixed.
return;
// Suppress this check if any of the following hold: // Suppress this check if any of the following hold:
// 1. this is the translation unit (and thus has no parent) // 1. this is the translation unit (and thus has no parent)
// 2. this is a template parameter (and thus doesn't belong to its context) // 2. this is a template parameter (and thus doesn't belong to its context)
// 3. this is a ParmVarDecl (which can be in a record context during // 3. the context is not a record
// the brief period between its creation and the creation of the // 4. it's invalid
// FunctionDecl)
// 4. the context is not a record
if (isa<TranslationUnitDecl>(this) || if (isa<TranslationUnitDecl>(this) ||
isa<TemplateTypeParmDecl>(this) ||
!isa<CXXRecordDecl>(getDeclContext()) || !isa<CXXRecordDecl>(getDeclContext()) ||
isInvalidDecl()) isInvalidDecl())
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment