Skip to content

Commit 0c40036

Browse files
authored
Add missing atomic_fence intrinsics as nops
Fixes #972
1 parent b0de1e9 commit 0c40036

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shims/intrinsics.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
8888
this.write_scalar(val, place.into())?;
8989
}
9090

91-
"atomic_fence_acq" => {
91+
"atomic_fence_acq" |
92+
"atomic_fence_rel" |
93+
"atomic_fence_acqrel" |
94+
"atomic_fence" => {
9295
// we are inherently singlethreaded and singlecored, this is a nop
9396
}
9497

0 commit comments

Comments
 (0)