Check for using variables
This commit is contained in:
1 parent
af1b3b6368
commit
776927709b
1 file changed
+1
-1
+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