summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-03-07 05:49:51 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-03-07 05:49:51 +0000
commitb632e30e41939b9a2253f9ebfa8367c3874402e9 (patch)
treef9621289e02fdf884bd3438049de79746723569b /clang/lib/Sema/SemaDecl.cpp
parent577cf97cf3ef54b29ecca43d2c5561d0165548bf (diff)
downloadbcm5719-llvm-b632e30e41939b9a2253f9ebfa8367c3874402e9.tar.gz
bcm5719-llvm-b632e30e41939b9a2253f9ebfa8367c3874402e9.zip
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
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
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<CXXRecordDecl>(Tag) && !Tag->getDeclContext()->isRecord())
+ if (isa<CXXRecordDecl>(Tag) && !Tag->getLexicalDeclContext()->isRecord())
RecordDynamicClassesWithNoKeyFunction(*this, cast<CXXRecordDecl>(Tag),
RBraceLoc);
OpenPOWER on IntegriCloud