mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
Check for using variables
This commit is contained in:
+1
-1
@@ -1400,7 +1400,7 @@ bool check_expr_is_stack_variable(Ast *expr) {
|
||||
expr = unparen_expr(expr);
|
||||
Entity *e = entity_of_node(expr);
|
||||
if (e && e->kind == Entity_Variable) {
|
||||
if (e->flags & EntityFlag_Static) {
|
||||
if (e->flags & (EntityFlag_Static|EntityFlag_Using)) {
|
||||
// okay
|
||||
} else if (e->Variable.thread_local_model.len != 0) {
|
||||
// okay
|
||||
|
||||
Reference in New Issue
Block a user