Fix r253186 test case
authorKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 08:25:14 +0000 (08:25 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Mon, 16 Nov 2015 08:25:14 +0000 (08:25 +0000)
Referencing a DILocation whose scope is a different subprogram causes
an assertion failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253187 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/Generic/ptrsize.ll

index 694aa0bbf3e150b03c18a666350d95ccb422cbfc..dfdcb5c0e79f9f5b1e834c03b143116e256caafa 100755 (executable)
@@ -22,7 +22,7 @@ entry:
 
 define i32 @bar() !dbg !5 {
 entry:
-  ret i32 0, !dbg !13
+  ret i32 0, !dbg !16
 }
 
 !llvm.dbg.cu = !{!0}
@@ -44,3 +44,4 @@ entry:
 !13 = !DILocation(line: 7, scope: !4)
 !14 = !{!10}
 !15 = !DISubroutineType(types: !14)
+!16 = !DILocation(line: 7, scope: !5)