forked from GitHub/gf-core
if there are no productions for a function, don't create PgfConcrLin at all
This commit is contained in:
@@ -1934,6 +1934,9 @@ void pgf_create_lin(PgfDB *db,
|
|||||||
PgfBuildLinIface *build,
|
PgfBuildLinIface *build,
|
||||||
PgfExn *err)
|
PgfExn *err)
|
||||||
{
|
{
|
||||||
|
if (n_prods == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
PGF_API_BEGIN {
|
PGF_API_BEGIN {
|
||||||
DB_scope scope(db, WRITER_SCOPE);
|
DB_scope scope(db, WRITER_SCOPE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user