Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 06ef32c

Browse files
committed
Make ptr_guaranteed_cmp a rustc_intrinsic and favor its body over backends implementing it
1 parent eeca87b commit 06ef32c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

‎src/intrinsics/mod.rs‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -757,13 +757,6 @@ fn codegen_regular_intrinsic_call<'tcx>(
757757
ret.write_cvalue(fx, val);
758758
}
759759

760-
sym::ptr_guaranteed_cmp => {
761-
intrinsic_args!(fx, args => (a, b); intrinsic);
762-
763-
let val = crate::num::codegen_ptr_binop(fx, BinOp::Eq, a, b).load_scalar(fx);
764-
ret.write_cvalue(fx, CValue::by_val(val, fx.layout_of(fx.tcx.types.u8)));
765-
}
766-
767760
sym::caller_location => {
768761
intrinsic_args!(fx, args => (); intrinsic);
769762

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /