mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
brz <-> brnz
This commit is contained in:
parent
11df0f5bd1
commit
4c312faf90
@ -169,9 +169,9 @@ pub fn trans_fn<'a, 'tcx: 'a>(
|
||||
let cond = trans_operand(fx, cond).load_value(fx);
|
||||
let target = fx.get_ebb(*target);
|
||||
if *expected {
|
||||
fx.bcx.ins().brz(cond, target, &[]);
|
||||
} else {
|
||||
fx.bcx.ins().brnz(cond, target, &[]);
|
||||
} else {
|
||||
fx.bcx.ins().brz(cond, target, &[]);
|
||||
};
|
||||
fx.bcx.ins().trap(TrapCode::User(!0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user