Skip to content

Commit 1d12b06

Browse files
committed
Fix variable name
1 parent 6fcd5bb commit 1d12b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/debuginfo/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ impl EnumMemberDescriptionFactory<'ll, 'tcx> {
13861386
let value = (i.as_u32() as u128)
13871387
.wrapping_sub(niche_variants.start().as_u32() as u128)
13881388
.wrapping_add(niche_start);
1389-
Some(truncate(value, niche.value.size(cx)))
1389+
Some(truncate(value, discr.value.size(cx)))
13901390
};
13911391

13921392
MemberDescription {

0 commit comments

Comments
 (0)