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 7a8227e commit c6e607aCopy full SHA for c6e607a
src/intrinsics/mod.rs
@@ -436,12 +436,13 @@ fn codegen_regular_intrinsic_call<'tcx>(
436
ret.write_cvalue(fx, CValue::by_val(align, usize_layout));
437
};
438
439
- unchecked_add | unchecked_sub | unchecked_div | exact_div | unchecked_rem
+ unchecked_add | unchecked_sub | unchecked_mul | unchecked_div | exact_div | unchecked_rem
440
| unchecked_shl | unchecked_shr, (c x, c y) {
441
// FIXME trap on overflow
442
let bin_op = match intrinsic {
443
sym::unchecked_add => BinOp::Add,
444
sym::unchecked_sub => BinOp::Sub,
445
+ sym::unchecked_mul => BinOp::Mul,
446
sym::unchecked_div | sym::exact_div => BinOp::Div,
447
sym::unchecked_rem => BinOp::Rem,
448
sym::unchecked_shl => BinOp::Shl,
0 commit comments