diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-12-20 05:02:14 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-12-20 05:02:14 +0000 |
| commit | 5e2ce7eb7a76908404d9532cae2628d38cc62b4b (patch) | |
| tree | 72ad079ee9a4274d62260de1889ae8a545ac8a74 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | 09c8eb5d26c41ecac7b55a4c3cef51bd2bdce507 (diff) | |
| parent | 214587c89d527dd0ccbe1f2150c737d3bdee67b0 (diff) | |
| download | rust-5e2ce7eb7a76908404d9532cae2628d38cc62b4b.tar.gz rust-5e2ce7eb7a76908404d9532cae2628d38cc62b4b.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/mod.rs b/compiler/rustc_codegen_ssa/src/debuginfo/mod.rs index 88d36b19da4..7c62c03d574 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/mod.rs @@ -65,8 +65,8 @@ fn tag_base_type_opt<'tcx>( }); match enum_type_and_layout.layout.variants() { - // A single-variant enum has no discriminant. - Variants::Single { .. } => None, + // A single-variant or no-variant enum has no discriminant. + Variants::Single { .. } | Variants::Empty => None, Variants::Multiple { tag_encoding: TagEncoding::Niche { .. }, tag, .. } => { // Niche tags are always normalized to unsized integers of the correct size. |
