mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Be a little more paranoid about daglabel counts.
I'm still a little worried about the number of labels needed with heavy alias usage.
This commit is contained in:
parent
204a0b3f72
commit
c477191488
1 changed files with 2 additions and 2 deletions
|
@ -540,8 +540,8 @@ dag_create (flownode_t *flownode)
|
|||
dag->flownode = flownode;
|
||||
// at most 4 per statement
|
||||
dag->nodes = alloca (num_statements * 4 * sizeof (dagnode_t));
|
||||
// at most 3 per statement
|
||||
dag->labels = alloca (num_statements * 3 * sizeof (daglabel_t));
|
||||
// at most 3 per statement, + return + params
|
||||
dag->labels = alloca (num_statements * (3 + 1 + 8) * sizeof (daglabel_t));
|
||||
dag->roots = set_new ();
|
||||
|
||||
for (s = block->statements; s; s = s->next) {
|
||||
|
|
Loading…
Reference in a new issue