diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-28 12:15:04 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-05-28 22:57:55 +0200 |
| commit | a387c86a929c27c102833c55bebad11cfc1c155d (patch) | |
| tree | 651c52838c01ab6ccc3a5081eef5a8854dfdad1c /compiler/rustc_codegen_llvm/src/llvm | |
| parent | 4794ea176be0d61f3ac08c367971c032e7abe7af (diff) | |
| download | rust-a387c86a929c27c102833c55bebad11cfc1c155d.tar.gz rust-a387c86a929c27c102833c55bebad11cfc1c155d.zip | |
get rid of rustc_codegen_ssa::common::AtomicOrdering
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 8 |
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, } } } |
