Skip to content

Commit ab7f1c8

Browse files
committed
Fix miscompilation in vtable access
Fixes rust-lang#1179
1 parent a12e23b commit ab7f1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub(crate) fn min_align_of_obj(fx: &mut FunctionCx<'_, '_, '_>, vtable: Value) -
3838
pointer_ty(fx.tcx),
3939
vtable_memflags(),
4040
vtable,
41-
(ty::COMMON_VTABLE_ENTRIES_SIZE * usize_size) as i32,
41+
(ty::COMMON_VTABLE_ENTRIES_ALIGN * usize_size) as i32,
4242
)
4343
}
4444

0 commit comments

Comments
 (0)