File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -500,8 +500,8 @@ impl<'tcx> ConvSpirvType<'tcx> for TyAndLayout<'tcx> {
500500 // perfectly, in every way that could potentially affect ABI.
501501 if self . fields . offset ( i) == Size :: ZERO
502502 && field. size == self . size
503- && field. align == self . align
504- && field. backend_repr == self . backend_repr
503+ && field. align . abi == self . align . abi
504+ && field. backend_repr . eq_up_to_validity ( & self . backend_repr )
505505 {
506506 return field. spirv_type ( span, cx) ;
507507 }
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<T> Deref for TypedBuffer<[T]> {
7474 "%result = OpCompositeConstruct typeof*{result_slot} %inner_ptr %inner_len" ,
7575 "OpStore {result_slot} %result" ,
7676 buffer = in( reg) self ,
77- result_slot = in( reg) & mut result_slot,
77+ result_slot = in( reg) result_slot. as_mut_ptr ( ) ,
7878 }
7979 result_slot. assume_init ( )
8080 }
@@ -94,7 +94,7 @@ impl<T> DerefMut for TypedBuffer<[T]> {
9494 "%result = OpCompositeConstruct typeof*{result_slot} %inner_ptr %inner_len" ,
9595 "OpStore {result_slot} %result" ,
9696 buffer = in( reg) self ,
97- result_slot = in( reg) & mut result_slot,
97+ result_slot = in( reg) result_slot. as_mut_ptr ( ) ,
9898 }
9999 result_slot. assume_init ( )
100100 }
You can’t perform that action at this time.
0 commit comments