Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
a45855fc
Commit
a45855fc
authored
14 years ago
by
Argyrios Kyrtzidis
Browse files
Options
Downloads
Patches
Plain Diff
Disable Decl::CheckAccessDeclContext() temporarily.
llvm-svn: 107478
parent
373a83ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clang/lib/AST/DeclBase.cpp
+6
-4
6 additions, 4 deletions
clang/lib/AST/DeclBase.cpp
with
6 additions
and
4 deletions
clang/lib/AST/DeclBase.cpp
+
6
−
4
View file @
a45855fc
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment