Fix r253186 test case

Referencing a DILocation whose scope is a different subprogram causes
an assertion failure.

llvm-svn: 253187
This commit is contained in:
Keno Fischer 2015-11-16 08:25:14 +00:00
parent b011c63d19
commit 6c543c501d
1 changed files with 2 additions and 1 deletions

View File

@ -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)