diff options
Diffstat (limited to 'llvm/test/DebugInfo/Generic/store-tail-merge.ll')
-rw-r--r-- | llvm/test/DebugInfo/Generic/store-tail-merge.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/DebugInfo/Generic/store-tail-merge.ll b/llvm/test/DebugInfo/Generic/store-tail-merge.ll index 624f30416e0..1aaf5533156 100644 --- a/llvm/test/DebugInfo/Generic/store-tail-merge.ll +++ b/llvm/test/DebugInfo/Generic/store-tail-merge.ll @@ -21,8 +21,10 @@ ; CHECK: define {{.*}}@foo ; CHECK: if.end: ; CHECK-NEXT: %storemerge = phi -; This final check is the "real" test, verify no !dbg on the store. -; CHECK-NEXT: store i32 %storemerge{{.*}}, align 4{{$}} +; +; The debug location on the store should be a line-0 location. +; CHECK-NEXT: store i32 %storemerge{{.*}}, align 4, !dbg [[storeLoc:![0-9]+]] +; CHECK: [[storeLoc]] = !DILocation(line: 0 ; ; ModuleID = 'test1.ll' source_filename = "test.c" |