aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-11-19 18:01:13 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-11-19 18:01:13 +0000
commit77407b802130b1c44b1f63b855722a5376f57bca (patch)
tree4005f53b992648d8a730bc9b03543920dd985646 /lib/CodeGen/CodeGenModule.cpp
parenta468d34bed16861f25aff6c8354f4e75d3358c1a (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions