summaryrefslogtreecommitdiff
path: root/test/ThinLTO/X86
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
commita39b1ce61f91a2543ee1735fe6f83045ac7c65f4 (patch)
tree2b54379aa207c0d8f651b03478b7c4bc1a8e2e09 /test/ThinLTO/X86
parente581944506d4ada4edc87dd51792efcf96c9f0c1 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ThinLTO/X86')
-rw-r--r--test/ThinLTO/X86/crash_debuginfo.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ThinLTO/X86/crash_debuginfo.ll b/test/ThinLTO/X86/crash_debuginfo.ll
index 31b55fb4f9e..8638c24d082 100644
--- a/test/ThinLTO/X86/crash_debuginfo.ll
+++ b/test/ThinLTO/X86/crash_debuginfo.ll
@@ -41,6 +41,5 @@ declare void @bar(i32)
!14 = !DILocalVariable(name: "caster", scope: !9, file: !1, line: 728, type: !15)
!15 = distinct !DICompositeType(tag: DW_TAG_union_type, scope: !9, file: !1, line: 728, size: 64, align: 64, elements: !6, identifier: "someclass")
!16 = distinct !DILocation(line: 87, column: 9, scope: !17)
-!17 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: !10, line: 73, type: !11, isLocal: false, isDefinition: true, scopeLine: 74, flags: DIFlagPrototyped, isOptimized: true, unit: !0, declaration: !18, variables: !6)
+!17 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: !10, file: !1, line: 73, type: !11, isLocal: false, isDefinition: true, scopeLine: 74, flags: DIFlagPrototyped, isOptimized: true, unit: !0, declaration: !18, variables: !6)
!18 = !DISubprogram(name: "foo", linkageName: "foo", scope: !10, file: !1, line: 83, type: !11, isLocal: false, isDefinition: false, scopeLine: 83, flags: DIFlagPrototyped, isOptimized: true)
-