Skip to content

Commit 41c9484

Browse files
committed
add overflow_checks intrinsic
1 parent 0d3aa50 commit 41c9484

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rustc_public/src/mir/body.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ pub enum RuntimeChecks {
10331033
UbChecks,
10341034
/// cfg!(contract_checks), but at codegen time
10351035
ContractChecks,
1036+
/// cfg!(overflow_checks), but at codegen time
1037+
OverflowChecks,
10361038
}
10371039

10381040
impl Operand {

rustc_public/src/unstable/convert/stable/mir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ impl<'tcx> Stable<'tcx> for mir::NullOp<'tcx> {
330330
RuntimeChecks(op) => crate::mir::NullOp::RuntimeChecks(match op {
331331
UbChecks => crate::mir::RuntimeChecks::UbChecks,
332332
ContractChecks => crate::mir::RuntimeChecks::ContractChecks,
333+
OverflowChecks => crate::mir::RuntimeChecks::OverflowChecks,
333334
}),
334335
}
335336
}

0 commit comments

Comments
 (0)