Skip to content

[MLIR][DebugInfo][test] Add missing DISubprogram type - #195720

Merged
rupprecht merged 1 commit into
llvm:mainfrom
rupprecht:mlir-debug-di-sub
May 4, 2026
Merged

[MLIR][DebugInfo][test] Add missing DISubprogram type#195720
rupprecht merged 1 commit into
llvm:mainfrom
rupprecht:mlir-debug-di-sub

Conversation

@rupprecht

Copy link
Copy Markdown
Contributor

Needed after #194556, and #195321 missed out on the cleanup since it was still in review.

@llvmorg-github-actions

llvmorg-github-actions Bot commented May 4, 2026

Copy link
Copy Markdown

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-mlir-llvm

Author: Jordan Rupprecht (rupprecht)

Changes

Needed after #194556, and #195321 missed out on the cleanup since it was still in review.


Full diff: https://github.com/llvm/llvm-project/pull/195720.diff

1 Files Affected:

  • (modified) mlir/test/Target/LLVMIR/llvmir-debug.mlir (+3-1)
diff --git a/mlir/test/Target/LLVMIR/llvmir-debug.mlir b/mlir/test/Target/LLVMIR/llvmir-debug.mlir
index 500a651c8003b..27dcf6979d7bb 100644
--- a/mlir/test/Target/LLVMIR/llvmir-debug.mlir
+++ b/mlir/test/Target/LLVMIR/llvmir-debug.mlir
@@ -830,7 +830,9 @@ llvm.func @fn_cu_import_cycle() {
 #di_arm_i = #llvm.di_derived_type<tag = DW_TAG_member, name = "_int64", baseType = #di_int64, sizeInBits = 64, offsetInBits = 64, extraData = 1 : i8>
 #di_arm_f = #llvm.di_derived_type<tag = DW_TAG_member, name = "_float64", baseType = #di_f64, sizeInBits = 64, offsetInBits = 64, extraData = 2 : i8>
 #di_vp    = #llvm.di_composite_type<tag = DW_TAG_variant_part, name = "variant_part", file = #di_file, sizeInBits = 64, identifier = "variant-id", discriminator = #di_disc, elements = #di_arm_i, #di_arm_f>
-#di_sub   = #llvm.di_subprogram<id = distinct[1]<>, compileUnit = #di_cu, scope = #di_file, name = "variant_part_emission", file = #di_file, subprogramFlags = Definition>
+#void_return = #llvm.di_null_type
+#void_type = #llvm.di_subroutine_type<types = #void_return>
+#di_sub   = #llvm.di_subprogram<id = distinct[1]<>, compileUnit = #di_cu, scope = #di_file, name = "variant_part_emission", file = #di_file, subprogramFlags = Definition, type = #void_type>
 #di_local = #llvm.di_local_variable<scope = #di_sub, name = "x", file = #di_file, type = #di_vp>
 #loc      = loc(fused<#di_sub>["foo.mlir":1:1])
 

@rupprecht rupprecht added the skip-precommit-approval PR for CI feedback, not intended for review label May 4, 2026
@rupprecht
rupprecht enabled auto-merge (squash) May 4, 2026 19:13
@rupprecht
rupprecht merged commit 5bf5c6b into llvm:main May 4, 2026
14 checks passed
@rupprecht
rupprecht deleted the mlir-debug-di-sub branch May 4, 2026 19:25
moar55 pushed a commit to moar55/llvm-project that referenced this pull request May 12, 2026
Needed after llvm#194556, and llvm#195321 missed out on the cleanup since it was
still in review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mlir:llvm mlir skip-precommit-approval PR for CI feedback, not intended for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant