diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-12-14 18:48:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-12-14 18:48:18 +0000 |
commit | 09f12fa1ca2c5905dda696ea6007ae754b2e2c93 (patch) | |
tree | 0de7af0198c816a9b0585ea5e2d1a2c00cb480c2 /clang/test/CodeGenCXX/debug-info-line.cpp | |
parent | 17e2633cd65d43ec0a14d247c7be83e2b793ef86 (diff) | |
download | bcm5719-llvm-09f12fa1ca2c5905dda696ea6007ae754b2e2c93.tar.gz bcm5719-llvm-09f12fa1ca2c5905dda696ea6007ae754b2e2c93.zip |
DebugInfo: More accurate line information for placement new.
This actually came up as a break in UBSan tests (look for a follow-up
commit to this one to see the UBSan test fallout) when I tried a broader
fix to location information.
I have some other ideas about how to do that broader change & will keep
looking into it.
llvm-svn: 224221
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-line.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-line.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp index f855c47cad4..6694a732c59 100644 --- a/clang/test/CodeGenCXX/debug-info-line.cpp +++ b/clang/test/CodeGenCXX/debug-info-line.cpp @@ -99,12 +99,13 @@ void f9(int i) { src1)[src2()]; } -void *operator new(decltype(sizeof(1)), void *); +inline void *operator new(decltype(sizeof(1)), void *p) noexcept { return p; } // CHECK-LABEL: define void f10() { void *void_src(); - ( // CHECK: store {{.*}} !dbg [[DBG_F10:!.*]] + ( // CHECK: icmp {{.*}} !dbg [[DBG_F10_ICMP:.*]] + // CHECK: store {{.*}} !dbg [[DBG_F10_STORE:!.*]] #line 1100 new (void_src()) int(src())); } @@ -121,4 +122,5 @@ void f10() { // CHECK: [[DBG_F7]] = metadata !{i32 800, // CHECK: [[DBG_F8]] = metadata !{i32 900, // CHECK: [[DBG_F9]] = metadata !{i32 1000, -// CHECK: [[DBG_F10]] = metadata !{i32 1100, +// CHECK: [[DBG_F10_ICMP]] = metadata !{i32 1100, +// CHECK: [[DBG_F10_STORE]] = metadata !{i32 1100, |