mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Lint fixes
This commit is contained in:
parent
a0e36690c5
commit
4968760328
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user