about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-31 05:52:59 +0000
committerGitHub <noreply@github.com>2025-05-31 05:52:59 +0000
commit49a99cb81b8bcd6d17451f48813c14f2a2092b7a (patch)
tree5f34a0f675e03dd7056bd9dfd39758ea117ff087 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent8c0f859183964c28cd961806afd9230c6c305137 (diff)
parent449ec7b3fec9ec7fb8d6bcf56b269f4b92128e20 (diff)
downloadrust-49a99cb81b8bcd6d17451f48813c14f2a2092b7a.tar.gz
rust-49a99cb81b8bcd6d17451f48813c14f2a2092b7a.zip
Merge pull request #4360 from rust-lang/rustup-2025-05-31
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 67a66e6ec79..e27fbf94f34 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -426,14 +426,14 @@ pub(crate) enum AtomicOrdering {
 }
 
 impl AtomicOrdering {
-    pub(crate) fn from_generic(ao: rustc_codegen_ssa::common::AtomicOrdering) -> Self {
-        use rustc_codegen_ssa::common::AtomicOrdering as Common;
+    pub(crate) fn from_generic(ao: rustc_middle::ty::AtomicOrdering) -> Self {
+        use rustc_middle::ty::AtomicOrdering as Common;
         match ao {
             Common::Relaxed => Self::Monotonic,
             Common::Acquire => Self::Acquire,
             Common::Release => Self::Release,
-            Common::AcquireRelease => Self::AcquireRelease,
-            Common::SequentiallyConsistent => Self::SequentiallyConsistent,
+            Common::AcqRel => Self::AcquireRelease,
+            Common::SeqCst => Self::SequentiallyConsistent,
         }
     }
 }