]> granicus.if.org Git - clang/commit
[DebugInfo] Fix debug info generation for function static variables, typedefs, and...
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 1 Jul 2015 12:34:39 +0000 (12:34 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Wed, 1 Jul 2015 12:34:39 +0000 (12:34 +0000)
commit979403f2e3937a7f869f6a4ef217695c75cbb3c2
treefb8384073a9cb19a0314e94bd2f608d7f5562572
parent6b4b8ef2b2fc24389224d34e6b0c5265d5c2eb6c
[DebugInfo] Fix debug info generation for function static variables, typedefs, and records

Function static variables, typedefs and records (class, struct or union) declared inside
a lexical scope were associated with the function as their parent scope, rather than the
lexical scope they are defined or declared in.

This fixes PR19238

Patch by: amjad.aboud@intel.com
Differential Revision: http://reviews.llvm.org/D9760

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241154 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
test/CodeGenCXX/debug-info-lb-class.cpp [new file with mode: 0644]
test/CodeGenCXX/debug-info-lb-static.cpp [new file with mode: 0644]
test/CodeGenCXX/debug-info-lb-static2.cpp [new file with mode: 0644]
test/CodeGenCXX/debug-info-lb-typedef.cpp [new file with mode: 0644]