diff options
author | John McCall <rjmccall@apple.com> | 2010-01-22 00:28:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-22 00:28:27 +0000 |
commit | f7b2fb51d191cb3fa668135a67c6b702c67d239e (patch) | |
tree | 191cee22788e6b2c217bc9bbec2434bd6a5a08c6 /clang/lib/AST/DeclBase.cpp | |
parent | 268735610518957507a3dae771c8ae1f9d7a4fe0 (diff) | |
download | bcm5719-llvm-f7b2fb51d191cb3fa668135a67c6b702c67d239e.tar.gz bcm5719-llvm-f7b2fb51d191cb3fa668135a67c6b702c67d239e.zip |
Create function, block, and template parameters in the context of the
translation unit. This is temporary for function and block parameters;
template parameters can just stay this way, since Templates aren't
DeclContexts. This gives us the nice property that everything created
in a record DC should have access in C++.
llvm-svn: 94122
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index 95b749bfbbd..84aa81ca76d 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -418,8 +418,6 @@ void Decl::CheckAccessDeclContext() const { // FunctionDecl) // 4. the context is not a record if (isa<TranslationUnitDecl>(this) || - isTemplateParameter() || - isa<ParmVarDecl>(this) || !isa<CXXRecordDecl>(getDeclContext())) return; |