mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Merge pull request #6913 from tf2spi/6831-add-constant-type-checks
Add more constant type cases
This commit is contained in:
@@ -1471,6 +1471,10 @@ gb_internal bool is_type_constant_type(Type *t) {
|
||||
return is_type_constant_type(t->Array.elem);
|
||||
case Type_EnumeratedArray:
|
||||
return is_type_constant_type(t->EnumeratedArray.elem);
|
||||
case Type_SimdVector:
|
||||
return is_type_constant_type(t->SimdVector.elem);
|
||||
case Type_Matrix:
|
||||
return is_type_constant_type(t->Matrix.elem);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user