mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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);
|
expr = unparen_expr(expr);
|
||||||
Entity *e = entity_of_node(expr);
|
Entity *e = entity_of_node(expr);
|
||||||
if (e && e->kind == Entity_Variable) {
|
if (e && e->kind == Entity_Variable) {
|
||||||
if (e->flags & EntityFlag_Static) {
|
if (e->flags & (EntityFlag_Static|EntityFlag_Using)) {
|
||||||
// okay
|
// okay
|
||||||
} else if (e->Variable.thread_local_model.len != 0) {
|
} else if (e->Variable.thread_local_model.len != 0) {
|
||||||
// okay
|
// okay
|
||||||
|
|||||||
Reference in New Issue
Block a user