@@ -299,7 +299,7 @@ fn fixed_vec_metadata<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
299
299
llvm:: LLVMRustDIBuilderCreateArrayType (
300
300
DIB ( cx) ,
301
301
bytes_to_bits ( array_size_in_bytes) ,
302
- bytes_to_bits ( element_type_align) as u32 ,
302
+ bytes_to_bits ( element_type_align) ,
303
303
element_type_metadata,
304
304
subscripts)
305
305
} ;
@@ -730,7 +730,7 @@ fn basic_type_metadata<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
730
730
DIB ( cx) ,
731
731
name. as_ptr ( ) ,
732
732
bytes_to_bits ( size) ,
733
- bytes_to_bits ( align) as u32 ,
733
+ bytes_to_bits ( align) ,
734
734
encoding)
735
735
} ;
736
736
@@ -750,7 +750,7 @@ fn pointer_type_metadata<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
750
750
DIB ( cx) ,
751
751
pointee_type_metadata,
752
752
bytes_to_bits ( pointer_size) ,
753
- bytes_to_bits ( pointer_align) as u32 ,
753
+ bytes_to_bits ( pointer_align) ,
754
754
name. as_ptr ( ) )
755
755
} ;
756
756
return ptr_metadata;
@@ -1504,7 +1504,7 @@ fn prepare_enum_metadata<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
1504
1504
file_metadata,
1505
1505
UNKNOWN_LINE_NUMBER ,
1506
1506
bytes_to_bits ( discriminant_size) ,
1507
- bytes_to_bits ( discriminant_align) as u32 ,
1507
+ bytes_to_bits ( discriminant_align) ,
1508
1508
create_DIArray ( DIB ( cx) , & enumerators_metadata) ,
1509
1509
discriminant_base_type_metadata)
1510
1510
} ;
@@ -1546,7 +1546,7 @@ fn prepare_enum_metadata<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
1546
1546
file_metadata,
1547
1547
UNKNOWN_LINE_NUMBER ,
1548
1548
bytes_to_bits ( enum_type_size) ,
1549
- bytes_to_bits ( enum_type_align) as u32 ,
1549
+ bytes_to_bits ( enum_type_align) ,
1550
1550
DIFlags :: FlagZero ,
1551
1551
ptr:: null_mut ( ) ,
1552
1552
0 , // RuntimeLang
@@ -1648,7 +1648,7 @@ fn set_members_of_composite_type(cx: &CrateContext,
1648
1648
unknown_file_metadata ( cx) ,
1649
1649
UNKNOWN_LINE_NUMBER ,
1650
1650
bytes_to_bits ( member_size) ,
1651
- bytes_to_bits ( member_align) as u32 ,
1651
+ bytes_to_bits ( member_align) ,
1652
1652
bytes_to_bits ( member_offset) ,
1653
1653
member_description. flags ,
1654
1654
member_description. type_metadata )
@@ -1691,7 +1691,7 @@ fn create_struct_stub(cx: &CrateContext,
1691
1691
unknown_file_metadata ( cx) ,
1692
1692
UNKNOWN_LINE_NUMBER ,
1693
1693
bytes_to_bits ( struct_size) ,
1694
- bytes_to_bits ( struct_align) as u32 ,
1694
+ bytes_to_bits ( struct_align) ,
1695
1695
DIFlags :: FlagZero ,
1696
1696
ptr:: null_mut ( ) ,
1697
1697
empty_array,
@@ -1728,7 +1728,7 @@ fn create_union_stub(cx: &CrateContext,
1728
1728
unknown_file_metadata ( cx) ,
1729
1729
UNKNOWN_LINE_NUMBER ,
1730
1730
bytes_to_bits ( union_size) ,
1731
- bytes_to_bits ( union_align) as u32 ,
1731
+ bytes_to_bits ( union_align) ,
1732
1732
DIFlags :: FlagZero ,
1733
1733
empty_array,
1734
1734
0 , // RuntimeLang
@@ -1783,7 +1783,7 @@ pub fn create_global_var_metadata(cx: &CrateContext,
1783
1783
is_local_to_unit,
1784
1784
global,
1785
1785
ptr:: null_mut ( ) ,
1786
- global_align as u32 ,
1786
+ global_align,
1787
1787
) ;
1788
1788
}
1789
1789
}
0 commit comments