@@ -290,8 +290,8 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
290
290
let val = bcx. call ( llfn, & [ llargs[ 0 ] , llargs[ 1 ] ] , None ) ;
291
291
let result = bcx. extract_value ( val, 0 ) ;
292
292
let overflow = bcx. zext ( bcx. extract_value ( val, 1 ) , Type :: bool ( ccx) ) ;
293
- bcx. store ( result, bcx. struct_gep ( llresult, 0 ) ) ;
294
- bcx. store ( overflow, bcx. struct_gep ( llresult, 1 ) ) ;
293
+ bcx. store ( result, bcx. struct_gep ( llresult, 0 ) , None ) ;
294
+ bcx. store ( overflow, bcx. struct_gep ( llresult, 1 ) , None ) ;
295
295
296
296
C_nil ( bcx. ccx )
297
297
} ,
@@ -409,8 +409,8 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
409
409
failorder, weak) ;
410
410
let result = bcx. extract_value ( val, 0 ) ;
411
411
let success = bcx. zext ( bcx. extract_value ( val, 1 ) , Type :: bool ( bcx. ccx ) ) ;
412
- bcx. store ( result, bcx. struct_gep ( llresult, 0 ) ) ;
413
- bcx. store ( success, bcx. struct_gep ( llresult, 1 ) ) ;
412
+ bcx. store ( result, bcx. struct_gep ( llresult, 0 ) , None ) ;
413
+ bcx. store ( success, bcx. struct_gep ( llresult, 1 ) , None ) ;
414
414
} else {
415
415
invalid_monomorphization ( sty) ;
416
416
}
@@ -615,7 +615,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
615
615
616
616
for i in 0 ..elems. len ( ) {
617
617
let val = bcx. extract_value ( val, i) ;
618
- bcx. store ( val, bcx. struct_gep ( llresult, i) ) ;
618
+ bcx. store ( val, bcx. struct_gep ( llresult, i) , None ) ;
619
619
}
620
620
C_nil ( ccx)
621
621
}
@@ -627,10 +627,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
627
627
if val_ty ( llval) != Type :: void ( ccx) && machine:: llsize_of_alloc ( ccx, val_ty ( llval) ) != 0 {
628
628
if let Some ( ty) = fn_ty. ret . cast {
629
629
let ptr = bcx. pointercast ( llresult, ty. ptr_to ( ) ) ;
630
- let store = bcx. store ( llval, ptr) ;
631
- unsafe {
632
- llvm:: LLVMSetAlignment ( store, type_of:: align_of ( ccx, ret_ty) ) ;
633
- }
630
+ bcx. store ( llval, ptr, Some ( type_of:: align_of ( ccx, ret_ty) ) ) ;
634
631
} else {
635
632
store_ty ( bcx, llval, llresult, ret_ty) ;
636
633
}
@@ -697,7 +694,7 @@ fn try_intrinsic<'a, 'tcx>(
697
694
) {
698
695
if bcx. sess ( ) . no_landing_pads ( ) {
699
696
bcx. call ( func, & [ data] , None ) ;
700
- bcx. store ( C_null ( Type :: i8p ( & bcx. ccx ) ) , dest) ;
697
+ bcx. store ( C_null ( Type :: i8p ( & bcx. ccx ) ) , dest, None ) ;
701
698
} else if wants_msvc_seh ( bcx. sess ( ) ) {
702
699
trans_msvc_try ( bcx, func, data, local_ptr, dest) ;
703
700
} else {
@@ -791,8 +788,8 @@ fn trans_msvc_try<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
791
788
let val1 = C_i32 ( ccx, 1 ) ;
792
789
let arg2 = catchpad. load ( catchpad. inbounds_gep ( addr, & [ val1] ) ) ;
793
790
let local_ptr = catchpad. bitcast ( local_ptr, i64p) ;
794
- catchpad. store ( arg1, local_ptr) ;
795
- catchpad. store ( arg2, catchpad. inbounds_gep ( local_ptr, & [ val1] ) ) ;
791
+ catchpad. store ( arg1, local_ptr, None ) ;
792
+ catchpad. store ( arg2, catchpad. inbounds_gep ( local_ptr, & [ val1] ) , None ) ;
796
793
catchpad. catch_ret ( tok, caught. llbb ( ) ) ;
797
794
798
795
caught. ret ( C_i32 ( ccx, 1 ) ) ;
@@ -801,7 +798,7 @@ fn trans_msvc_try<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
801
798
// Note that no invoke is used here because by definition this function
802
799
// can't panic (that's what it's catching).
803
800
let ret = bcx. call ( llfn, & [ func, data, local_ptr] , None ) ;
804
- bcx. store ( ret, dest) ;
801
+ bcx. store ( ret, dest, None ) ;
805
802
}
806
803
807
804
// Definition of the standard "try" function for Rust using the GNU-like model
@@ -860,14 +857,14 @@ fn trans_gnu_try<'a, 'tcx>(bcx: &BlockAndBuilder<'a, 'tcx>,
860
857
let vals = catch. landing_pad ( lpad_ty, bcx. ccx . eh_personality ( ) , 1 , catch. fcx ( ) . llfn ) ;
861
858
catch. add_clause ( vals, C_null ( Type :: i8p ( ccx) ) ) ;
862
859
let ptr = catch. extract_value ( vals, 0 ) ;
863
- catch. store ( ptr, catch. bitcast ( local_ptr, Type :: i8p ( ccx) . ptr_to ( ) ) ) ;
860
+ catch. store ( ptr, catch. bitcast ( local_ptr, Type :: i8p ( ccx) . ptr_to ( ) ) , None ) ;
864
861
catch. ret ( C_i32 ( ccx, 1 ) ) ;
865
862
} ) ;
866
863
867
864
// Note that no invoke is used here because by definition this function
868
865
// can't panic (that's what it's catching).
869
866
let ret = bcx. call ( llfn, & [ func, data, local_ptr] , None ) ;
870
- bcx. store ( ret, dest) ;
867
+ bcx. store ( ret, dest, None ) ;
871
868
}
872
869
873
870
// Helper function to give a Block to a closure to translate a shim function.
0 commit comments