DebugInfo: Add missing !dbg attachments to intrinsics
[oota-llvm.git] / test / CodeGen / Generic / dbg_value.ll
1 ; RUN: llc < %s
2 ; rdar://7759395
3
4 %0 = type { i32, i32 }
5
6 define void @t(%0*, i32, i32, i32, i32) nounwind {
7   tail call void @llvm.dbg.value(metadata %0* %0, i64 0, metadata !0, metadata !MDExpression()), !dbg !MDLocation(scope: !MDSubprogram())
8   unreachable
9 }
10
11 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
12
13 ; !0 should conform to the format of DIVariable.
14 !0 = !MDLocalVariable(tag: DW_TAG_arg_variable, name: "a", arg: 0, scope: !MDSubprogram())