We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0f870e commit 74f39b6Copy full SHA for 74f39b6
src/num.rs
@@ -328,18 +328,11 @@ pub(crate) fn codegen_checked_int_binop<'tcx>(
328
329
let has_overflow = fx.bcx.ins().bint(types::I8, has_overflow);
330
331
- // FIXME directly write to result place instead
332
- let out_place = CPlace::new_stack_slot(
333
- fx,
334
- fx.layout_of(
335
- fx.tcx
336
- .mk_tup([in_lhs.layout().ty, fx.tcx.types.bool].iter()),
337
- ),
+ let out_layout = fx.layout_of(
+ fx.tcx
+ .mk_tup([in_lhs.layout().ty, fx.tcx.types.bool].iter()),
338
);
339
- let out_layout = out_place.layout();
340
- out_place.write_cvalue(fx, CValue::by_val_pair(res, has_overflow, out_layout));
341
-
342
- out_place.to_cvalue(fx)
+ CValue::by_val_pair(res, has_overflow, out_layout)
343
}
344
345
pub(crate) fn codegen_float_binop<'tcx>(
0 commit comments