Skip to content

Commit 7760894

Browse files
committed
Allow cranelift to handle atomic pointers
1 parent b5f6c00 commit 7760894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/intrinsics/mod.rs

Lines changed: 2 additions & 2 deletions
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)