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> {
500
500
// perfectly, in every way that could potentially affect ABI.
501
501
if self . fields . offset ( i) == Size :: ZERO
502
502
&& 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 )
505
505
{
506
506
return field. spirv_type ( span, cx) ;
507
507
}
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<T> Deref for TypedBuffer<[T]> {
74
74
"%result = OpCompositeConstruct typeof*{result_slot} %inner_ptr %inner_len" ,
75
75
"OpStore {result_slot} %result" ,
76
76
buffer = in( reg) self ,
77
- result_slot = in( reg) & mut result_slot,
77
+ result_slot = in( reg) result_slot. as_mut_ptr ( ) ,
78
78
}
79
79
result_slot. assume_init ( )
80
80
}
@@ -94,7 +94,7 @@ impl<T> DerefMut for TypedBuffer<[T]> {
94
94
"%result = OpCompositeConstruct typeof*{result_slot} %inner_ptr %inner_len" ,
95
95
"OpStore {result_slot} %result" ,
96
96
buffer = in( reg) self ,
97
- result_slot = in( reg) & mut result_slot,
97
+ result_slot = in( reg) result_slot. as_mut_ptr ( ) ,
98
98
}
99
99
result_slot. assume_init ( )
100
100
}
You can’t perform that action at this time.
0 commit comments