diff options
author | Adrian Thurston <thurston@complang.org> | 2015-10-20 11:20:14 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-10-20 11:20:14 -0400 |
commit | 924fbf2224b7e39e68230c568ef4ce3ac57eb569 (patch) | |
tree | 7bbda61212c4aaef189491557c4e82aa9d037d21 /src/pdarun.c | |
parent | 0bf72e130c2f7ac3eb6383689e9bdc5bb4730e70 (diff) | |
download | colm-924fbf2224b7e39e68230c568ef4ce3ac57eb569.tar.gz |
some bug fixes in construction of the reducer
Diffstat (limited to 'src/pdarun.c')
-rw-r--r-- | src/pdarun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pdarun.c b/src/pdarun.c index 0a1da726..a0978165 100644 --- a/src/pdarun.c +++ b/src/pdarun.c @@ -1204,8 +1204,9 @@ void colm_pda_init( program_t *prg, struct pda_run *pda_run, struct pda_tables * init_pool_alloc( &pda_run->local_pool, sizeof(parse_tree_t) + commit_union_sz() ); pda_run->parse_tree_pool = &pda_run->local_pool; } - - pda_run->parse_tree_pool = &prg->parse_tree_pool; + else { + pda_run->parse_tree_pool = &prg->parse_tree_pool; + } debug( prg, REALM_PARSE, "initializing struct pda_run\n" ); |