add overflow_checks intrinsic
This commit is contained in:
parent
2e5d395f2b
commit
cc8b95cc54
12 changed files with 81 additions and 10 deletions
|
|
@ -1033,6 +1033,8 @@ pub enum RuntimeChecks {
|
|||
UbChecks,
|
||||
/// cfg!(contract_checks), but at codegen time
|
||||
ContractChecks,
|
||||
/// cfg!(overflow_checks), but at codegen time
|
||||
OverflowChecks,
|
||||
}
|
||||
|
||||
impl Operand {
|
||||
|
|
|
|||
|
|
@ -330,6 +330,7 @@ impl<'tcx> Stable<'tcx> for mir::NullOp<'tcx> {
|
|||
RuntimeChecks(op) => crate::mir::NullOp::RuntimeChecks(match op {
|
||||
UbChecks => crate::mir::RuntimeChecks::UbChecks,
|
||||
ContractChecks => crate::mir::RuntimeChecks::ContractChecks,
|
||||
OverflowChecks => crate::mir::RuntimeChecks::OverflowChecks,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue