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 f91bd78 commit 3549d98Copy full SHA for 3549d98
src/base.rs
@@ -789,7 +789,7 @@ fn codegen_stmt<'tcx>(
789
layout.offset_of_subfield(fx, fields.iter()).bytes()
790
}
791
NullOp::UbChecks => {
792
- let val = fx.tcx.sess.opts.debug_assertions;
+ let val = fx.tcx.sess.ub_checks();
793
let val = CValue::by_val(
794
fx.bcx.ins().iconst(types::I8, i64::try_from(val).unwrap()),
795
fx.layout_of(fx.tcx.types.bool),
0 commit comments