Change rustc_codegen_ssa's atomic_cmpxchg interface to return a pair of values

This commit is contained in:
Bernd Schmidt
2023-11-30 14:54:27 +01:00
committed by Maybe Waffle
parent 5b8bc568d2
commit 6cf6139411
4 changed files with 12 additions and 20 deletions

View File

@@ -296,7 +296,7 @@ pub trait BuilderMethods<'a, 'tcx>:
order: AtomicOrdering,
failure_order: AtomicOrdering,
weak: bool,
) -> Self::Value;
) -> (Self::Value, Self::Value);
fn atomic_rmw(
&mut self,
op: AtomicRmwBinOp,