1; RUN: llc -O0 -fast-isel=1 -o - -print-after="finalize-isel" %s 2>&1 | FileCheck %s 2 3; Check that we emit a DBG_VALUE for the `@llvm.dbg.value` which has `undef` has first arg. 4 5target triple = "arm64-apple-ios13.4.0" 6define void @foo() !dbg !6 { 7 ; CHECK: DBG_VALUE $noreg, $noreg, !"1", !DIExpression() 8 call void @llvm.dbg.value(metadata i32* undef, metadata !9, metadata !DIExpression()), !dbg !11 9 ret void, !dbg !12 10} 11 12declare void @llvm.dbg.value(metadata, metadata, metadata) 13 14!llvm.dbg.cu = !{!0} 15!llvm.module.flags = !{!5} 16 17!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 18!1 = !DIFile(filename: "t.ll", directory: "/") 19!2 = !{} 20!5 = !{i32 2, !"Debug Info Version", i32 3} 21!6 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: null, file: !1, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8) 22!7 = !DISubroutineType(types: !2) 23!8 = !{!9} 24!9 = !DILocalVariable(name: "1", scope: !6, file: !1, line: 1, type: !10) 25!10 = !DIBasicType(name: "ty64", size: 64, encoding: DW_ATE_unsigned) 26!11 = !DILocation(line: 1, column: 1, scope: !6) 27!12 = !DILocation(line: 2, column: 1, scope: !6) 28