1; UNSUPPORTED: system-windows 2; REQUIRES: x86-registered-target 3; RUN: llc %s -o %t0.o -filetype=obj 4; RUN: %llvm-locstats %t0.o | FileCheck %s --check-prefix=LOCSTATS 5; 6; LOCSTATS: No scope bytes found. 7; 8; This is based on the following reproducer: 9; 10; int fn() { 11; return 0; 12; } 13; 14; ModuleID = 'test.c' 15source_filename = "test.c" 16target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 17target triple = "x86_64-unknown-linux-gnu" 18; Function Attrs: norecurse nounwind readnone uwtable 19define dso_local i32 @fn() local_unnamed_addr !dbg !7 { 20entry: 21 ret i32 0, !dbg !11 22} 23 24!llvm.dbg.cu = !{!0} 25!llvm.module.flags = !{!3, !4, !5} 26!llvm.ident = !{!6} 27 28!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 10.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None) 29!1 = !DIFile(filename: "test.c", directory: "/") 30!2 = !{} 31!3 = !{i32 7, !"Dwarf Version", i32 4} 32!4 = !{i32 2, !"Debug Info Version", i32 3} 33!5 = !{i32 1, !"wchar_size", i32 4} 34!6 = !{!"clang version 10.0.0"} 35!7 = distinct !DISubprogram(name: "fn", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2) 36!8 = !DISubroutineType(types: !9) 37!9 = !{!10} 38!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 39!11 = !DILocation(line: 2, column: 3, scope: !7) 40