@@ -151,7 +151,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
151
151
}
152
152
"min_align_of" => {
153
153
let tp_ty = substs. type_at ( 0 ) ;
154
- C_uint ( ccx, type_of :: align_of ( ccx , tp_ty) )
154
+ C_uint ( ccx, ccx . align_of ( tp_ty) )
155
155
}
156
156
"min_align_of_val" => {
157
157
let tp_ty = substs. type_at ( 0 ) ;
@@ -160,7 +160,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
160
160
glue:: size_and_align_of_dst ( bcx, tp_ty, llargs[ 1 ] ) ;
161
161
llalign
162
162
} else {
163
- C_uint ( ccx, type_of :: align_of ( ccx , tp_ty) )
163
+ C_uint ( ccx, ccx . align_of ( tp_ty) )
164
164
}
165
165
}
166
166
"pref_align_of" => {
@@ -234,7 +234,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
234
234
}
235
235
let load = bcx. volatile_load ( ptr) ;
236
236
unsafe {
237
- llvm:: LLVMSetAlignment ( load, type_of :: align_of ( ccx , tp_ty) ) ;
237
+ llvm:: LLVMSetAlignment ( load, ccx . align_of ( tp_ty) ) ;
238
238
}
239
239
to_immediate ( bcx, load, tp_ty)
240
240
} ,
@@ -252,7 +252,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
252
252
let ptr = bcx. pointercast ( llargs[ 0 ] , val_ty ( val) . ptr_to ( ) ) ;
253
253
let store = bcx. volatile_store ( val, ptr) ;
254
254
unsafe {
255
- llvm:: LLVMSetAlignment ( store, type_of :: align_of ( ccx , tp_ty) ) ;
255
+ llvm:: LLVMSetAlignment ( store, ccx . align_of ( tp_ty) ) ;
256
256
}
257
257
}
258
258
C_nil ( ccx)
@@ -634,7 +634,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
634
634
if val_ty ( llval) != Type :: void ( ccx) && machine:: llsize_of_alloc ( ccx, val_ty ( llval) ) != 0 {
635
635
if let Some ( ty) = fn_ty. ret . cast {
636
636
let ptr = bcx. pointercast ( llresult, ty. ptr_to ( ) ) ;
637
- bcx. store ( llval, ptr, Some ( type_of :: align_of ( ccx , ret_ty) ) ) ;
637
+ bcx. store ( llval, ptr, Some ( ccx . align_of ( ret_ty) ) ) ;
638
638
} else {
639
639
store_ty ( bcx, llval, llresult, Alignment :: AbiAligned , ret_ty) ;
640
640
}
@@ -651,7 +651,7 @@ fn copy_intrinsic<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
651
651
-> ValueRef {
652
652
let ccx = bcx. ccx ;
653
653
let lltp_ty = type_of:: type_of ( ccx, tp_ty) ;
654
- let align = C_i32 ( ccx, type_of :: align_of ( ccx , tp_ty) as i32 ) ;
654
+ let align = C_i32 ( ccx, ccx . align_of ( tp_ty) as i32 ) ;
655
655
let size = machine:: llsize_of ( ccx, lltp_ty) ;
656
656
let int_size = machine:: llbitsize_of_real ( ccx, ccx. int_type ( ) ) ;
657
657
@@ -685,7 +685,7 @@ fn memset_intrinsic<'a, 'tcx>(
685
685
count : ValueRef
686
686
) -> ValueRef {
687
687
let ccx = bcx. ccx ;
688
- let align = C_i32 ( ccx, type_of :: align_of ( ccx , ty) as i32 ) ;
688
+ let align = C_i32 ( ccx, ccx . align_of ( ty) as i32 ) ;
689
689
let lltp_ty = type_of:: type_of ( ccx, ty) ;
690
690
let size = machine:: llsize_of ( ccx, lltp_ty) ;
691
691
let dst = bcx. pointercast ( dst, Type :: i8p ( ccx) ) ;
0 commit comments