From b632e30e41939b9a2253f9ebfa8367c3874402e9 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 7 Mar 2010 05:49:51 +0000 Subject: Fix for PR6294: we should only delay recording nested dynamic classes if they are lexically nested. Othewise, we never end up recording semantically nested classes. llvm-svn: 97900 --- clang/lib/Sema/SemaDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaDecl.cpp') diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ec1939e5ece..935adcf1b65 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -5030,7 +5030,7 @@ void Sema::ActOnTagFinishDefinition(Scope *S, DeclPtrTy TagD, // Exit this scope of this tag's definition. PopDeclContext(); - if (isa(Tag) && !Tag->getDeclContext()->isRecord()) + if (isa(Tag) && !Tag->getLexicalDeclContext()->isRecord()) RecordDynamicClassesWithNoKeyFunction(*this, cast(Tag), RBraceLoc); -- cgit v1.2.3