refactor check_{lang,library}_ub: use a single intrinsic, put policy into library
This commit is contained in:
parent
987ef4c922
commit
6177530420
34 changed files with 133 additions and 118 deletions
|
@ -796,7 +796,7 @@ impl<'tcx> Body<'tcx> {
|
|||
}
|
||||
|
||||
match rvalue {
|
||||
Rvalue::NullaryOp(NullOp::UbCheck(_), _) => {
|
||||
Rvalue::NullaryOp(NullOp::UbChecks, _) => {
|
||||
Some((tcx.sess.opts.debug_assertions as u128, targets))
|
||||
}
|
||||
Rvalue::Use(Operand::Constant(constant)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue