mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-23 14:55:19 +00:00
Merge pull request #5653 from smoke-y/emptyParen
Fix compiler segfault when trying to use () as type
This commit is contained in:
@@ -1797,6 +1797,9 @@ gb_internal void add_type_and_value(CheckerContext *ctx, Ast *expr, AddressingMo
|
||||
}
|
||||
|
||||
expr = unparen_expr(expr);
|
||||
if (expr == nullptr) {
|
||||
break;
|
||||
};
|
||||
}
|
||||
mutex_unlock(mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user