[cfe-commits] r68548 - /cfe/trunk/lib/AST/DeclBase.cpp
Douglas Gregor
dgregor at apple.com
Tue Apr 7 13:58:25 PDT 2009
Author: dgregor
Date: Tue Apr 7 15:58:25 2009
New Revision: 68548
URL: http://llvm.org/viewvc/llvm-project?rev=68548&view=rev
Log:
Allow us to ask for the access specifier of a translation unit
Modified:
cfe/trunk/lib/AST/DeclBase.cpp
Modified: cfe/trunk/lib/AST/DeclBase.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclBase.cpp?rev=68548&r1=68547&r2=68548&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclBase.cpp (original)
+++ cfe/trunk/lib/AST/DeclBase.cpp Tue Apr 7 15:58:25 2009
@@ -338,7 +338,8 @@
#ifndef NDEBUG
void Decl::CheckAccessDeclContext() const {
- assert((Access != AS_none || !isa<CXXRecordDecl>(getDeclContext())) &&
+ assert((Access != AS_none || isa<TranslationUnitDecl>(this) ||
+ !isa<CXXRecordDecl>(getDeclContext())) &&
"Access specifier is AS_none inside a record decl");
}
More information about the cfe-commits
mailing list