diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:52:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-13 14:52:27 -0400 |
| commit | aaac5dff28b2fa4835dd9a3a352f274069a7b432 (patch) | |
| tree | 23463efc54ee6801d13c310b1ef97aa8e8660025 /types.c | |
| parent | 32a6a5ce37499adb7a88b81d9832639c53ecf58b (diff) | |
Integers can have heap memory
Diffstat (limited to 'types.c')
| -rw-r--r-- | types.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -211,6 +211,7 @@ bool has_heap_memory(type_t *t) case TableType: return true; case SetType: return true; case PointerType: return true; + case IntType: return (Match(t, IntType)->bits == 0); case StructType: { for (arg_t *field = Match(t, StructType)->fields; field; field = field->next) { if (has_heap_memory(field->type)) |
