mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
fix OOB typifier indexing
This commit is contained in:
1 parent
af26d77ce4
commit
29ca53148d
1 file changed
+1
@@ -1707,6 +1707,7 @@ impl<'source, 'temp> Lowerer<'source, 'temp> {
|
||||
crate::TypeInner::Scalar { kind, .. } => kind,
|
||||
crate::TypeInner::Vector { kind, .. } => kind,
|
||||
_ => {
|
||||
ctx.grow_types(expr)?;
|
||||
let ty = &ctx.typifier()[expr];
|
||||
return Err(Error::BadTypeCast {
|
||||
from_type: ctx.format_type_resolution(ty),
|
||||
|
||||
Reference in new issue
Block a user