@@ -933,7 +933,7 @@ fn codegen_msvc_try(
933933 //
934934 // More information can be found in libstd's seh.rs implementation.
935935 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) ;
937937 bx. invoke ( try_func, & [ data] , normal. llbb ( ) , catchswitch. llbb ( ) , None ) ;
938938
939939 normal. ret ( bx. const_i32 ( 0 ) ) ;
@@ -956,10 +956,10 @@ fn codegen_msvc_try(
956956 // When modifying, make sure that the type_name string exactly matches
957957 // the one used in src/libpanic_unwind/seh.rs.
958958 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 ) ) ;
960960 let type_name = bx. const_bytes ( b"rust_panic\0 " ) ;
961961 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] ,
963963 false ,
964964 ) ;
965965 let tydesc = bx. declare_global ( "__rust_panic_type_info" , bx. val_ty ( type_info) ) ;
@@ -1041,14 +1041,14 @@ fn codegen_gnu_try(
10411041 // being thrown. The second value is a "selector" indicating which of
10421042 // the landing pad clauses the exception's type had been matched to.
10431043 // 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 ) ;
10451045 let vals = catch. landing_pad ( lpad_ty, bx. eh_personality ( ) , 1 ) ;
10461046 let tydesc = match bx. tcx ( ) . lang_items ( ) . eh_catch_typeinfo ( ) {
10471047 Some ( tydesc) => {
10481048 let tydesc = bx. get_static ( tydesc) ;
10491049 bx. bitcast ( tydesc, bx. type_i8p ( bx. cx ( ) . address_space_of_value ( tydesc) ) )
10501050 }
1051- None => bx. const_null ( bx. type_i8p ( AddressSpace :: default ( ) ) ) ,
1051+ None => bx. const_null ( bx. type_i8p ( AddressSpace :: DATA ) ) ,
10521052 } ;
10531053 catch. add_clause ( vals, tydesc) ;
10541054 let ptr = catch. extract_value ( vals, 0 ) ;
@@ -1540,7 +1540,7 @@ fn generic_simd_intrinsic(
15401540 _ => unreachable ! ( ) ,
15411541 } ;
15421542 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 ) ;
15441544 no_pointers -= 1 ;
15451545 }
15461546 cx. type_vector ( elem_ty, vec_len)
0 commit comments