diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fwd/ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fwd/ast.h b/include/fwd/ast.h index 5f2b7cb..a253901 100644 --- a/include/fwd/ast.h +++ b/include/fwd/ast.h @@ -5,6 +5,7 @@ #define AST_H #include <stddef.h> +#include <string.h> #include <assert.h> #include <stdbool.h> @@ -280,6 +281,10 @@ static inline bool is_trivially_copyable(struct type *type) /** @todo primitive types */ return true; + case TYPE_ID: + /* very special, bad bad bad */ + return strcmp(type->id, "int") == 0; + default: return false; } |