diff options
author | Taewook Oh <twoh@fb.com> | 2019-08-14 17:58:45 +0000 |
---|---|---|
committer | Taewook Oh <twoh@fb.com> | 2019-08-14 17:58:45 +0000 |
commit | df7022825c0e803efce34f11a3670b469c2901e0 (patch) | |
tree | 4d7135a32664fda1e2462b424a514d089f042d09 /llvm/test/DebugInfo/Generic | |
parent | 12f5a2807ef4dc8c82be29586a067aafa8aa41f4 (diff) | |
download | bcm5719-llvm-df7022825c0e803efce34f11a3670b469c2901e0.tar.gz bcm5719-llvm-df7022825c0e803efce34f11a3670b469c2901e0.zip |
[DebugInfo] Consider debug label scope has an extra lexical block file
Summary: There are places where a case that debug label scope has an extra lexical block file is not considered properly. The modified test won't pass without this patch.
Reviewers: aprantl, HsiangKai
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66187
llvm-svn: 368891
Diffstat (limited to 'llvm/test/DebugInfo/Generic')
-rw-r--r-- | llvm/test/DebugInfo/Generic/debug-label.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/Generic/debug-label.ll b/llvm/test/DebugInfo/Generic/debug-label.ll index 57a0e952dea..9139c98028d 100644 --- a/llvm/test/DebugInfo/Generic/debug-label.ll +++ b/llvm/test/DebugInfo/Generic/debug-label.ll @@ -70,6 +70,7 @@ declare void @llvm.dbg.label(metadata) !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) !10 = !DILabel(scope: !6, name: "top", file: !1, line: 4) !11 = !DILocation(line: 4, column: 1, scope: !6) -!12 = !DILabel(scope: !6, name: "done", file: !1, line: 7) +!12 = !DILabel(scope: !15, name: "done", file: !1, line: 7) !13 = !DILocation(line: 7, column: 1, scope: !6) !14 = !DILocation(line: 8, column: 3, scope: !6) +!15 = !DILexicalBlockFile(discriminator: 2, file: !1, scope: !6) |