summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-line.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-01-18 00:12:58 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-01-18 00:12:58 +0000
commita81d410d4f397a35054f4056ee4c032b6b43c1d1 (patch)
tree1accaaa6871a423bd6e4adaa6ce49b309f6375eb /clang/test/CodeGenCXX/debug-info-line.cpp
parente35a6e69f22cb4086f3050d3473869304b87199d (diff)
downloadbcm5719-llvm-a81d410d4f397a35054f4056ee4c032b6b43c1d1.tar.gz
bcm5719-llvm-a81d410d4f397a35054f4056ee4c032b6b43c1d1.zip
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
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-line.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-line.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp
index 02b5059c5d3..bcfd0d02b4e 100644
--- a/clang/test/CodeGenCXX/debug-info-line.cpp
+++ b/clang/test/CodeGenCXX/debug-info-line.cpp
@@ -173,12 +173,12 @@ struct f14 {
// CHECK-LABEL: define
// CHECK-LABEL: define
// CHECK-LABEL: define
+struct {
// CHECK: call {{.*}}, !dbg [[DBG_F14_CTOR_CALL:![0-9]*]]
-// FIXME: The ctor call should be attributed to the line of the NSDMI, not the
-// start of this declaration.
#line 1600
-struct {
- f14 v = 1;
+ f14 v
+ =
+ 1;
} f14_inst;
// CHECK-LABEL: define
OpenPOWER on IntegriCloud