Fixed compile errors

This commit is contained in:
Sylvester Hesp 2022-08-22 16:54:19 +02:00 committed by Eduard-Mihai Burtescu
parent cdf9187f1c
commit 86921a21ff
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ impl<'tcx> ConvSpirvType<'tcx> for TyAndLayout<'tcx> {
span = cx.tcx.def_span(adt.did());
}
let attrs = AggregatedSpirvAttributes::parse(cx, cx.tcx.get_attrs(adt.did()));
let attrs = AggregatedSpirvAttributes::parse(cx, cx.tcx.get_attrs_unchecked(adt.did()));
if let Some(intrinsic_type_attr) = attrs.intrinsic_type.map(|attr| attr.value) {
if let Ok(spirv_type) =

View File

@ -108,7 +108,7 @@ impl<'tcx> CodegenCx<'tcx> {
let declared = fn_id.with_type(function_type);
let attrs = AggregatedSpirvAttributes::parse(self, self.tcx.get_attrs(instance.def_id()));
let attrs = AggregatedSpirvAttributes::parse(self, self.tcx.get_attrs_unchecked(instance.def_id()));
if let Some(entry) = attrs.entry.map(|attr| attr.value) {
let entry_name = entry
.name