@@ -933,7 +933,7 @@ fn codegen_msvc_try(
933
933
//
934
934
// More information can be found in libstd's seh.rs implementation.
935
935
let ptr_align = bx. tcx ( ) . data_layout . pointer_align . abi ;
936
- let slot = bx. alloca ( bx. type_i8p ( AddressSpace :: default ( ) ) , ptr_align) ;
936
+ let slot = bx. alloca ( bx. type_i8p ( AddressSpace :: DATA ) , ptr_align) ;
937
937
bx. invoke ( try_func, & [ data] , normal. llbb ( ) , catchswitch. llbb ( ) , None ) ;
938
938
939
939
normal. ret ( bx. const_i32 ( 0 ) ) ;
@@ -956,10 +956,10 @@ fn codegen_msvc_try(
956
956
// When modifying, make sure that the type_name string exactly matches
957
957
// the one used in src/libpanic_unwind/seh.rs.
958
958
let type_info_vtable =
959
- bx. declare_global ( "??_7type_info@@6B@" , bx. type_i8p ( AddressSpace :: default ( ) ) ) ;
959
+ bx. declare_global ( "??_7type_info@@6B@" , bx. type_i8p ( AddressSpace :: DATA ) ) ;
960
960
let type_name = bx. const_bytes ( b"rust_panic\0 " ) ;
961
961
let type_info = bx. const_struct (
962
- & [ type_info_vtable, bx. const_null ( bx. type_i8p ( AddressSpace :: default ( ) ) ) , type_name] ,
962
+ & [ type_info_vtable, bx. const_null ( bx. type_i8p ( AddressSpace :: DATA ) ) , type_name] ,
963
963
false ,
964
964
) ;
965
965
let tydesc = bx. declare_global ( "__rust_panic_type_info" , bx. val_ty ( type_info) ) ;
@@ -1041,14 +1041,14 @@ fn codegen_gnu_try(
1041
1041
// being thrown. The second value is a "selector" indicating which of
1042
1042
// the landing pad clauses the exception's type had been matched to.
1043
1043
// rust_try ignores the selector.
1044
- let lpad_ty = bx. type_struct ( & [ bx. type_i8p ( AddressSpace :: default ( ) ) , bx. type_i32 ( ) ] , false ) ;
1044
+ let lpad_ty = bx. type_struct ( & [ bx. type_i8p ( AddressSpace :: DATA ) , bx. type_i32 ( ) ] , false ) ;
1045
1045
let vals = catch. landing_pad ( lpad_ty, bx. eh_personality ( ) , 1 ) ;
1046
1046
let tydesc = match bx. tcx ( ) . lang_items ( ) . eh_catch_typeinfo ( ) {
1047
1047
Some ( tydesc) => {
1048
1048
let tydesc = bx. get_static ( tydesc) ;
1049
1049
bx. bitcast ( tydesc, bx. type_i8p ( bx. cx ( ) . address_space_of_value ( tydesc) ) )
1050
1050
}
1051
- None => bx. const_null ( bx. type_i8p ( AddressSpace :: default ( ) ) ) ,
1051
+ None => bx. const_null ( bx. type_i8p ( AddressSpace :: DATA ) ) ,
1052
1052
} ;
1053
1053
catch. add_clause ( vals, tydesc) ;
1054
1054
let ptr = catch. extract_value ( vals, 0 ) ;
@@ -1540,7 +1540,7 @@ fn generic_simd_intrinsic(
1540
1540
_ => unreachable ! ( ) ,
1541
1541
} ;
1542
1542
while no_pointers > 0 {
1543
- elem_ty = cx. type_ptr_to ( elem_ty, AddressSpace :: default ( ) ) ;
1543
+ elem_ty = cx. type_ptr_to ( elem_ty, AddressSpace :: DATA ) ;
1544
1544
no_pointers -= 1 ;
1545
1545
}
1546
1546
cx. type_vector ( elem_ty, vec_len)
0 commit comments