Lint fixes

This commit is contained in:
Sylvester Hesp 2022-11-03 16:33:49 +01:00 committed by Eduard-Mihai Burtescu
parent a0e36690c5
commit 4968760328

View File

@ -1177,11 +1177,9 @@ impl<'a, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'tcx> {
// be stored to memory (which intrinsics all do, for historical reasons)
// - but we don't do that in `from_immediate`, so it's emulated here.
let val = match (self.lookup_type(val.ty), self.lookup_type(ptr_elem_ty)) {
(SpirvType::Bool, SpirvType::Integer(8, false)) => {
self.zext(val, ptr_elem_ty)
}
(SpirvType::Bool, SpirvType::Integer(8, false)) => self.zext(val, ptr_elem_ty),
_ => val
_ => val,
};
assert_ty_eq!(self, ptr_elem_ty, val.ty);