summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/X86/dbg-declare-arg.ll
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-04-24 03:23:02 +0000
committerAdrian Prantl <aprantl@apple.com>2016-04-24 03:23:02 +0000
commit971481db982d36338cbb2c096e98576dc5de2edc (patch)
tree744a090c6c0bf1475c4d068a36f9575028eeadc1 /llvm/test/DebugInfo/X86/dbg-declare-arg.ll
parentc3ed48c1bdba86f5528778b39c2106ef82670e0c (diff)
downloadbcm5719-llvm-971481db982d36338cbb2c096e98576dc5de2edc.tar.gz
bcm5719-llvm-971481db982d36338cbb2c096e98576dc5de2edc.zip
Verifier: Verify that each inlinable callsite of a debug-info-bearing function
in a debug-info-bearing function has a debug location attached to it. Failure to do so causes an "!dbg attachment points at wrong subprogram for function" assertion failure when the inliner sets up inline scope info. rdar://problem/25878916 llvm-svn: 267320
Diffstat (limited to 'llvm/test/DebugInfo/X86/dbg-declare-arg.ll')
-rw-r--r--llvm/test/DebugInfo/X86/dbg-declare-arg.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-declare-arg.ll b/llvm/test/DebugInfo/X86/dbg-declare-arg.ll
index c2a652c7266..7fd6296c7ee 100644
--- a/llvm/test/DebugInfo/X86/dbg-declare-arg.ll
+++ b/llvm/test/DebugInfo/X86/dbg-declare-arg.ll
@@ -54,7 +54,7 @@ entry:
store %class.A* %this, %class.A** %this.addr, align 8
call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !43, metadata !DIExpression()), !dbg !44
%this1 = load %class.A*, %class.A** %this.addr
- call void @_ZN1AD2Ev(%class.A* %this1)
+ call void @_ZN1AD2Ev(%class.A* %this1), !dbg !53
ret void, !dbg !45
}
@@ -124,3 +124,4 @@ entry:
!49 = distinct !DILexicalBlock(line: 2, column: 52, file: !51, scope: !25)
!51 = !DIFile(filename: "a.cc", directory: "/private/tmp")
!52 = !{i32 1, !"Debug Info Version", i32 3}
+!53 = !DILocation(line: 0, scope: !22)
OpenPOWER on IntegriCloud