Skip to content

Commit

Permalink
Make ptr_guaranteed_cmp a rustc_intrinsic and favor its body over bac…
Browse files Browse the repository at this point in the history
…kends implementing it
  • Loading branch information
oli-obk committed Mar 19, 2024
1 parent eeca87b commit 06ef32c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,13 +757,6 @@ fn codegen_regular_intrinsic_call<'tcx>(
ret.write_cvalue(fx, val);
}

sym::ptr_guaranteed_cmp => {
intrinsic_args!(fx, args => (a, b); intrinsic);

let val = crate::num::codegen_ptr_binop(fx, BinOp::Eq, a, b).load_scalar(fx);
ret.write_cvalue(fx, CValue::by_val(val, fx.layout_of(fx.tcx.types.u8)));
}

sym::caller_location => {
intrinsic_args!(fx, args => (); intrinsic);

Expand Down

0 comments on commit 06ef32c

Please sign in to comment.