Skip to content

Commit 41f988e

Browse files
committed
Allow cranelift to handle atomic pointers
1 parent 392ea29 commit 41f988e

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_codegen_cranelift/src/intrinsics

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ macro atomic_minmax($fx:expr, $cc:expr, <$T:ident> ($ptr:ident, $src:ident) -> $
146146

147147
macro validate_atomic_type($fx:ident, $intrinsic:ident, $span:ident, $ty:expr) {
148148
match $ty.kind() {
149-
ty::Uint(_) | ty::Int(_) => {}
149+
ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
150150
_ => {
151151
$fx.tcx.sess.span_err(
152152
$span,
153153
&format!(
154-
"`{}` intrinsic: expected basic integer type, found `{:?}`",
154+
"`{}` intrinsic: expected basic integer or raw pointer type, found `{:?}`",
155155
$intrinsic, $ty
156156
),
157157
);

0 commit comments

Comments
 (0)