mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
Merge pull request #2176 from jaspergeer/fix-untyped-segfault
fix #2129 Segfault in compiler when void function used for its return value
This commit is contained in:
@@ -1257,6 +1257,9 @@ bool is_type_typed(Type *t) {
|
||||
}
|
||||
bool is_type_untyped(Type *t) {
|
||||
t = base_type(t);
|
||||
if (t == nullptr) {
|
||||
return false;
|
||||
}
|
||||
if (t->kind == Type_Basic) {
|
||||
return (t->Basic.flags & BasicFlag_Untyped) != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user