summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile/early-inline.ll
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2017-02-17 23:57:42 +0000
committerJustin Bogner <mail@justinbogner.com>2017-02-17 23:57:42 +0000
commitefc3fbf6a2015464d8f2773b7003f64190d17c31 (patch)
tree01c5161fecce6263076b13eb46eac99983ff3662 /llvm/test/Transforms/SampleProfile/early-inline.ll
parent34b1fd6aaaf7e31ddcf65437ba8e274fe79bb7d2 (diff)
downloadbcm5719-llvm-efc3fbf6a2015464d8f2773b7003f64190d17c31.tar.gz
bcm5719-llvm-efc3fbf6a2015464d8f2773b7003f64190d17c31.zip
Verifier: Disallow a line number without a file in DISubprogram
A line number doesn't make much sense if you don't say where it's from. Add a verifier check for this and update some tests that had bogus debug info. llvm-svn: 295516
Diffstat (limited to 'llvm/test/Transforms/SampleProfile/early-inline.ll')
-rw-r--r--llvm/test/Transforms/SampleProfile/early-inline.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SampleProfile/early-inline.ll b/llvm/test/Transforms/SampleProfile/early-inline.ll
index 780ff4751f4..51e7d243c18 100644
--- a/llvm/test/Transforms/SampleProfile/early-inline.ll
+++ b/llvm/test/Transforms/SampleProfile/early-inline.ll
@@ -41,8 +41,8 @@ declare i32 @__gxx_personality_v0(...)
!1 = !DIFile(filename: "a", directory: "b/")
!3 = !{i32 2, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
-!6 = distinct !DISubprogram(linkageName: "_Z3foov", scope: !1, line: 5, scopeLine: 5, unit: !0)
+!6 = distinct !DISubprogram(linkageName: "_Z3foov", scope: !1, file: !1, line: 5, scopeLine: 5, unit: !0)
!9 = !DILocation(line: 6, column: 3, scope: !6)
!10 = !DILocation(line: 8, column: 5, scope: !11)
!11 = distinct !DILexicalBlock(scope: !6, file: !1, line: 7, column: 7)
-!12 = distinct !DISubprogram(linkageName: "_ZL3barv", scope: !1, line: 20, scopeLine: 20, unit: !0)
+!12 = distinct !DISubprogram(linkageName: "_ZL3barv", scope: !1, file: !1, line: 20, scopeLine: 20, unit: !0)
OpenPOWER on IntegriCloud