aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-22 00:28:27 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-22 00:28:27 +0000
commit7a9813ced7455b8a33a807489ca77a4f809c8a73 (patch)
tree1d7a59209cade7ea47c40c8dd2d644876290e250 /lib/AST/DeclBase.cpp
parentf45b646244705410866d62f1d8bf017a047ed662 (diff)
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++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index 95b749bfbb..84aa81ca76 100644
--- a/lib/AST/DeclBase.cpp
+++ b/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;