]> granicus.if.org Git - clang/commit
Fix scope of namespaced DISubprograms when the function definition is out-of-line.
authorAdrian Prantl <aprantl@apple.com>
Tue, 16 May 2017 23:46:10 +0000 (23:46 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 16 May 2017 23:46:10 +0000 (23:46 +0000)
commit90199139dcd767a3bfc488590a8b27145bce7766
tree9140a742de71a0ec0ad1f485a17ed53468a73fc3
parent3f318c863b1bb1a66c4683f79cbcdcc018b1462d
Fix scope of namespaced DISubprograms when the function definition is out-of-line.
This fixes a regression introduced in r302915.

Using the lexical decl context is not necessary here for what r302915
wast trying to achieve. Not canonicalizing the NamespaceDecl in
getOrCreateNamespace is suficient.

rdar://problem/29339538

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-namespace.cpp