Skip to content

Commit ebd941b

Browse files
committed
debuginfo: Generators use u32 as discriminant type repr
1 parent e54a16c commit ebd941b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_codegen_llvm/debuginfo/metadata.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1802,9 +1802,9 @@ fn prepare_enum_metadata(
18021802
DIB(cx),
18031803
name.as_ptr().cast(),
18041804
name.len(),
1805-
// FIXME: what if enumeration has i128 discriminant?
1806-
variant_index.as_usize() as i64,
1807-
false, // FIXME: IsUnsigned.
1805+
// Generators use u32 as discriminant type.
1806+
variant_index.as_u32().into(),
1807+
true, // IsUnsigned
18081808
))
18091809
}
18101810
})

0 commit comments

Comments
 (0)