We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9abfa commit f8feed7Copy full SHA for f8feed7
src/intrinsics/mod.rs
@@ -431,6 +431,16 @@ fn codegen_regular_intrinsic_call<'tcx>(
431
ret.write_cvalue(fx, CValue::by_val(align, usize_layout));
432
};
433
434
+ vtable_size, (v vtable) {
435
+ let size = crate::vtable::size_of_obj(fx, vtable);
436
+ ret.write_cvalue(fx, CValue::by_val(size, usize_layout));
437
+ };
438
+
439
+ vtable_align, (v vtable) {
440
+ let align = crate::vtable::min_align_of_obj(fx, vtable);
441
+ ret.write_cvalue(fx, CValue::by_val(align, usize_layout));
442
443
444
unchecked_add | unchecked_sub | unchecked_mul | unchecked_div | exact_div | unchecked_rem
445
| unchecked_shl | unchecked_shr, (c x, c y) {
446
// FIXME trap on overflow
0 commit comments