1; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o - %s \ 2; RUN: | llvm-dwarfdump - \ 3; RUN: | FileCheck %s 4 5; CHECK: DW_TAG_variable 6; CHECK-NOT: DW_AT_location 7; CHECK-NEXT: DW_AT_name ("arr") 8; CHECK-NOT: DW_AT_location 9; CHECK: DW_TAG 10define dso_local void @test() !dbg !4 { 11entry: 12 call void @llvm.dbg.value(metadata !DIArgList(i128 0), metadata !7, metadata !DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 0, DW_OP_plus, DW_OP_stack_value, DW_OP_LLVM_fragment, 0, 127)), !dbg !12 13 ret void, !dbg !12 14} 15 16declare void @llvm.dbg.value(metadata, metadata, metadata) 17 18!llvm.dbg.cu = !{!0} 19!llvm.module.flags = !{!2, !3} 20 21!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) 22!1 = !DIFile(filename: "test.c", directory: "") 23!2 = !{i32 7, !"Dwarf Version", i32 4} 24!3 = !{i32 2, !"Debug Info Version", i32 3} 25!4 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !5, unit: !0) 26!5 = !DISubroutineType(types: !6) 27!6 = !{null} 28!7 = !DILocalVariable(name: "arr", scope: !4, file: !1, line: 1, type: !8) 29!8 = !DICompositeType(tag: DW_TAG_array_type, baseType: !9, size: 128, elements: !10) 30!9 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) 31!10 = !{!11} 32!11 = !DISubrange(count: 16) 33!12 = !DILocation(line: 1, column: 1, scope: !4) 34