DebugInfo: Correctly identify the location of C++ member initializer list elements
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Dec 2014 00:32:22 +0000 (00:32 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 9 Dec 2014 00:32:22 +0000 (00:32 +0000)
commit73ca56942dc55c29c4dfa4a7ce64e466fe43c891
treeb4f5873b49923490ad235a0d42afd7a07097d9ef
parent0dd4dd3adba6576ccf49839a840e6c9d115dd553
DebugInfo: Correctly identify the location of C++ member initializer list elements

This particularly helps the fidelity of ASan reports (which can occur
even in these examples - if, for example, one uses placement new over a
buffer of insufficient size - now ASan will correctly identify which
member's initialization went over the end of the buffer).

This doesn't cover all types of members - more coming.

llvm-svn: 223726
clang/lib/CodeGen/CGClass.cpp
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGenCXX/debug-info-line.cpp