diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-02 09:34:17 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-02 09:34:17 +0200 |
| commit | 021271091a6cedc1cb460b8d271dcc5b653775f0 (patch) | |
| tree | acedf14b5bdc9d12a4a14992e0e76910d1c8ff06 /src/entity.cpp | |
| parent | c1ff7894dfcc1edfd420a10ab81eef00f2e36b10 (diff) | |
| parent | 7feff1c11335be9c0d804c3ca93050b7d154aad8 (diff) | |
Merge branch 'netbsd' into netbsd-ci
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 6cea0930f..a12e1d0a6 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -496,7 +496,7 @@ gb_internal bool is_entity_local_variable(Entity *e) { if (e->scope == nullptr) { return true; } - if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue)) { + if (e->flags & (EntityFlag_ForValue|EntityFlag_SwitchValue|EntityFlag_Static)) { return false; } |