26 lines · plain
1; RUN: opt %s -o - -S --passes=verify 2>&1 | FileCheck %s2 3; CHECK: DbgLoc uses atomGroup but DISubprogram doesn't have Key Instructions enabled4; CHECK-NEXT: ![[#]] = !DILocation(line: 1, column: 11, scope: ![[f:.*]], atomGroup: 1, atomRank: 1)5; CHECK-NEXT: ![[f]] = distinct !DISubprogram(name: "f"6; CHECK-NEXT: warning: ignoring invalid debug info7 8define dso_local void @f() !dbg !10 {9entry:10; Include non-key location to check verifier is checking the whole function.11 %0 = add i32 0, 0, !dbg !1412 ret void, !dbg !1313}14 15!llvm.module.flags = !{!3}16 17!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 21.0.0git", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)18!1 = !DIFile(filename: "test.cpp", directory: "/")19!3 = !{i32 2, !"Debug Info Version", i32 3}20!9 = !{!"clang version 21.0.0git"}21!10 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !11, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)22!11 = !DISubroutineType(types: !12)23!12 = !{null}24!13 = !DILocation(line: 1, column: 11, scope: !10, atomGroup: 1, atomRank: 1)25!14 = !DILocation(line: 1, column: 11, scope: !10)26