@@ -549,7 +549,7 @@ impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
549549 ty : & ' ll Type ,
550550 ptr : & ' ll Value ,
551551 order : AtomicOrdering ,
552- size : Size ,
552+ _size : Size ,
553553 ) -> & ' ll Value {
554554 // Since for any A, A | 0 = A, and performing atomics on constant memory is UB in Rust, we can abuse or to perform atomic reads.
555555 self . atomic_rmw ( AtomicRmwBinOp :: AtomicOr , ptr, self . const_int ( ty, 0 ) , order)
@@ -782,7 +782,7 @@ impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
782782 val : & ' ll Value ,
783783 ptr : & ' ll Value ,
784784 order : AtomicOrdering ,
785- size : Size ,
785+ _size : Size ,
786786 ) {
787787 // We can exchange *ptr with val, and then discard the result.
788788 self . atomic_rmw ( AtomicRmwBinOp :: AtomicXchg , ptr, val, order) ;
@@ -1164,8 +1164,7 @@ impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
11641164 // We pack the result, to match the behaviour of proper atomics / emulated thread-local atomics.
11651165 let res = builder. const_undef ( res_type) ;
11661166 let res = builder. insert_value ( res, load, 0 ) ;
1167- let res = builder. insert_value ( res, compare, 1 ) ;
1168- res
1167+ builder. insert_value ( res, compare, 1 )
11691168 } ,
11701169 ) ;
11711170 // Unpack the result
@@ -1190,7 +1189,7 @@ impl<'ll, 'tcx, 'a> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
11901189 unsafe {
11911190 llvm:: LLVMBuildAtomicRMW (
11921191 builder. llbuilder ,
1193- op,
1192+ op. into ( ) ,
11941193 dst,
11951194 src,
11961195 crate :: llvm:: AtomicOrdering :: from_generic ( order) ,
0 commit comments