]> granicus.if.org Git - clang/commit
DebugInfo: Lazily built static member variable declarations should use the canonical...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Oct 2014 22:22:17 +0000 (22:22 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 14 Oct 2014 22:22:17 +0000 (22:22 +0000)
commit25ae67622cdce44f39a160665eebf139f60ba6fc
tree1f52b23befd862453639e6ae4cda955ded4fcb87
parent0e9cdfcf37ff87585ee9160c9c5da7935063f907
DebugInfo: Lazily built static member variable declarations should use the canonical declaration for line/file information.

When lazily constructing static member variable declarations (when
the vtable optimization fires and the definition of the type is omitted
(or built later, lazily), but the out of line definition of the static
member is provided and must be described in debug info) ensure we use
the canonical declaration when computing the file, line, etc for that
declaration (rather than the definition, which is also a declaration,
but not the canonical one).

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