DebugInfo: Correct the debug location of non-static data member initializers
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 18 Jan 2015 00:12:58 +0000 (00:12 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 18 Jan 2015 00:12:58 +0000 (00:12 +0000)
commita81d410d4f397a35054f4056ee4c032b6b43c1d1
tree1accaaa6871a423bd6e4adaa6ce49b309f6375eb
parente35a6e69f22cb4086f3050d3473869304b87199d
DebugInfo: Correct the debug location of non-static data member initializers

This was causing some trouble for otherwise dead code removed in r225085
(reverted in r225361). The location being set for function arguments was
leaking out to the call which wasn't setting its own location (so a
quality bug turned into a crasher with r225085). Fix this so r225085 can
be recommitted.

llvm-svn: 226382
clang/lib/AST/DeclCXX.cpp
clang/lib/CodeGen/CGClass.cpp
clang/test/CodeGenCXX/debug-info-line.cpp