From aaac5dff28b2fa4835dd9a3a352f274069a7b432 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Aug 2024 14:52:27 -0400 Subject: Integers can have heap memory --- types.c | 1 + 1 file changed, 1 insertion(+) (limited to 'types.c') diff --git a/types.c b/types.c index 04c87225..a55395be 100644 --- a/types.c +++ b/types.c @@ -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)) -- cgit v1.2.3