Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define MAX_PARAMS 8
#define MAX_LOCALS 1600
#define MAX_FIELDS 64
#define MAX_TYPES 64
#define MAX_TYPES 128
#define MAX_IR_INSTR 60000
#define MAX_BB_PRED 128
#define MAX_BB_DOM_SUCC 64
Expand Down
4 changes: 4 additions & 0 deletions src/globals.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,10 @@ int find_macro_param_src_idx(char *name, block_t *parent)

type_t *add_type(void)
{
if (types_idx >= MAX_TYPES) {
printf("Error: Maximum number of types (%d) exceeded\n", MAX_TYPES);
abort();
}
return &TYPES[types_idx++];
}

Expand Down