We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fcd5bb commit 1d12b06Copy full SHA for 1d12b06
src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -1386,7 +1386,7 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
1386
let value = (i.as_u32() as u128)
1387
.wrapping_sub(niche_variants.start().as_u32() as u128)
1388
.wrapping_add(niche_start);
1389
- Some(truncate(value, niche.value.size(cx)))
+ Some(truncate(value, discr.value.size(cx)))
1390
};
1391
1392
MemberDescription {
0 commit comments