CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
48 lines
2.3 KiB
LLVM
48 lines
2.3 KiB
LLVM
; RUN: llvm-reduce %s -o %t --delta-passes=di-metadata --test FileCheck --test-arg %s --test-arg --input-file --abort-on-invalid-reduction
|
|
; CHECK: , !dbg !11
|
|
|
|
;; Tests for the bug fixed in PR#108541, where the presence of null metadata
|
|
;; could result in a crash.
|
|
|
|
define i1 @ham() {
|
|
bb:
|
|
%call = call fastcc i32 @hoge()
|
|
ret i1 false
|
|
}
|
|
|
|
define fastcc i32 @hoge() {
|
|
bb:
|
|
br i1 poison, label %bb1, label %bb2
|
|
|
|
bb1: ; preds = %bb
|
|
br i1 false, label %bb2, label %bb2, !dbg !11
|
|
|
|
bb2: ; preds = %bb1, %bb1, %bb
|
|
ret i32 0
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!10}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 20.0.0git", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, retainedTypes: !2, globals: !2, imports: !3, splitDebugInlining: false, nameTableKind: None)
|
|
!1 = !DIFile(filename: "108541-metadata-crash.cpp", directory: "/tmp")
|
|
!2 = !{}
|
|
!3 = !{!4}
|
|
!4 = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: !5, entity: !6, file: !7, line: 134)
|
|
!5 = !DINamespace(name: "std", scope: null)
|
|
!6 = !DISubprogram(name: "abort", scope: !7, file: !7, line: 730, type: !8, flags: DIFlagPrototyped | DIFlagNoReturn, spFlags: DISPFlagOptimized)
|
|
!7 = !DIFile(filename: "108541-metadata-crash.cpp", directory: "")
|
|
!8 = !DISubroutineType(types: !9)
|
|
!9 = !{null}
|
|
!10 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!11 = !DILocation(line: 26, column: 11, scope: !12)
|
|
!12 = distinct !DILexicalBlock(scope: !14, file: !13, line: 26, column: 11)
|
|
!13 = !DIFile(filename: "108541-metadata-crash.cpp", directory: "/tmp")
|
|
!14 = distinct !DILexicalBlock(scope: !15, file: !13, line: 25, column: 5)
|
|
!15 = distinct !DILexicalBlock(scope: !16, file: !13, line: 24, column: 9)
|
|
!16 = distinct !DILexicalBlock(scope: !17, file: !13, line: 14, column: 3)
|
|
!17 = distinct !DILexicalBlock(scope: !18, file: !13, line: 13, column: 3)
|
|
!18 = distinct !DILexicalBlock(scope: !19, file: !13, line: 13, column: 3)
|
|
!19 = distinct !DISubprogram(name: "hoge", linkageName: "hoge", scope: !13, file: !13, line: 10, type: !20, scopeLine: 11, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
|
|
!20 = distinct !DISubroutineType(types: !2)
|