Skip to content

Commit aec0fc5

Browse files
committed
Auto merge of #77611 - oli-obk:atomic_miri_leakage, r=nagisa
Directly use raw pointers in `AtomicPtr` store/load I was unable to find any reason for this limitation in the latest source of LLVM or in the documentation [here](http://llvm.org/docs/Atomics.html#libcalls-atomic). fixes rust-lang/miri#1574
2 parents d404840 + 7760894 commit aec0fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)