@@ -151,7 +151,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
151151 }
152152 "min_align_of" => {
153153 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) )
155155 }
156156 "min_align_of_val" => {
157157 let tp_ty = substs. type_at ( 0 ) ;
@@ -160,7 +160,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
160160 glue:: size_and_align_of_dst ( bcx, tp_ty, llargs[ 1 ] ) ;
161161 llalign
162162 } else {
163- C_uint ( ccx, type_of :: align_of ( ccx , tp_ty) )
163+ C_uint ( ccx, ccx . align_of ( tp_ty) )
164164 }
165165 }
166166 "pref_align_of" => {
@@ -234,7 +234,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
234234 }
235235 let load = bcx. volatile_load ( ptr) ;
236236 unsafe {
237- llvm:: LLVMSetAlignment ( load, type_of :: align_of ( ccx , tp_ty) ) ;
237+ llvm:: LLVMSetAlignment ( load, ccx . align_of ( tp_ty) ) ;
238238 }
239239 to_immediate ( bcx, load, tp_ty)
240240 } ,
@@ -252,7 +252,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
252252 let ptr = bcx. pointercast ( llargs[ 0 ] , val_ty ( val) . ptr_to ( ) ) ;
253253 let store = bcx. volatile_store ( val, ptr) ;
254254 unsafe {
255- llvm:: LLVMSetAlignment ( store, type_of :: align_of ( ccx , tp_ty) ) ;
255+ llvm:: LLVMSetAlignment ( store, ccx . align_of ( tp_ty) ) ;
256256 }
257257 }
258258 C_nil ( ccx)
@@ -634,7 +634,7 @@ pub fn trans_intrinsic_call<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
634634 if val_ty ( llval) != Type :: void ( ccx) && machine:: llsize_of_alloc ( ccx, val_ty ( llval) ) != 0 {
635635 if let Some ( ty) = fn_ty. ret . cast {
636636 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) ) ) ;
638638 } else {
639639 store_ty ( bcx, llval, llresult, Alignment :: AbiAligned , ret_ty) ;
640640 }
@@ -651,7 +651,7 @@ fn copy_intrinsic<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
651651 -> ValueRef {
652652 let ccx = bcx. ccx ;
653653 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 ) ;
655655 let size = machine:: llsize_of ( ccx, lltp_ty) ;
656656 let int_size = machine:: llbitsize_of_real ( ccx, ccx. int_type ( ) ) ;
657657
@@ -685,7 +685,7 @@ fn memset_intrinsic<'a, 'tcx>(
685685 count : ValueRef
686686) -> ValueRef {
687687 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 ) ;
689689 let lltp_ty = type_of:: type_of ( ccx, ty) ;
690690 let size = machine:: llsize_of ( ccx, lltp_ty) ;
691691 let dst = bcx. pointercast ( dst, Type :: i8p ( ccx) ) ;
0 commit comments