Skip to content

Commit

Permalink
The <*const T>::guaranteed_* methods now return an option for the u…
Browse files Browse the repository at this point in the history
…nknown case
  • Loading branch information
oli-obk committed Sep 9, 2022
1 parent b8169a6 commit 931c07c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,20 +819,13 @@ fn codegen_regular_intrinsic_call<'tcx>(
ret.write_cvalue(fx, val);
}

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

let val = crate::num::codegen_ptr_binop(fx, BinOp::Eq, a, b);
ret.write_cvalue(fx, val);
}

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

let val = crate::num::codegen_ptr_binop(fx, BinOp::Ne, a, b);
ret.write_cvalue(fx, val);
}

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

Expand Down

0 comments on commit 931c07c

Please sign in to comment.