@@ -621,7 +621,7 @@ impl<'tcx> GotocCtx<'tcx> {
621
621
}
622
622
"volatile_store" => {
623
623
assert ! ( self . place_ty( p) . is_unit( ) ) ;
624
- self . codegen_volatile_store ( instance, intrinsic , fargs, loc)
624
+ self . codegen_volatile_store ( instance, fargs, loc)
625
625
}
626
626
"wrapping_add" => codegen_wrapping_op ! ( plus) ,
627
627
"wrapping_mul" => codegen_wrapping_op ! ( mul) ,
@@ -1181,11 +1181,9 @@ impl<'tcx> GotocCtx<'tcx> {
1181
1181
fn codegen_volatile_store (
1182
1182
& mut self ,
1183
1183
instance : Instance < ' tcx > ,
1184
- intrinsic : & str ,
1185
1184
mut fargs : Vec < Expr > ,
1186
1185
loc : Location ,
1187
1186
) -> Stmt {
1188
- emit_concurrency_warning ! ( intrinsic, loc) ;
1189
1187
let dst = fargs. remove ( 0 ) ;
1190
1188
let src = fargs. remove ( 0 ) ;
1191
1189
let typ = instance. substs . type_at ( 0 ) ;
@@ -1194,9 +1192,9 @@ impl<'tcx> GotocCtx<'tcx> {
1194
1192
align,
1195
1193
PropertyClass :: DefaultAssertion ,
1196
1194
"`dst` is properly aligned" ,
1197
- loc. clone ( ) ,
1195
+ loc,
1198
1196
) ;
1199
- let expr = dst. dereference ( ) . assign ( src, loc. clone ( ) ) ;
1197
+ let expr = dst. dereference ( ) . assign ( src, loc) ;
1200
1198
Stmt :: block ( vec ! [ align_check, expr] , loc)
1201
1199
}
1202
1200
0 commit comments