diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-19 18:01:13 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-19 18:01:13 +0000 |
commit | 0d09c4944e448958ab1ff1941948777805df95e7 (patch) | |
tree | 6b5c36f3ade69e225924258059cf95b0dfbc6615 /clang/lib/CodeGen | |
parent | ef5e6934cb38f616938a448bd31868c19edafd71 (diff) | |
download | bcm5719-llvm-0d09c4944e448958ab1ff1941948777805df95e7.tar.gz bcm5719-llvm-0d09c4944e448958ab1ff1941948777805df95e7.zip |
Take care another assert:
struct A {
struct B;
};
struct A::B {
void m() {} // Assertion failed: getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one."
};
Introduce DeclContext::getLexicalParent which may be different from DeclContext::getParent when nested-names are involved, e.g:
namespace A {
struct S;
}
struct A::S {}; // getParent() == namespace 'A'
// getLexicalParent() == translation unit
llvm-svn: 59650
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions