1
0
forked from GitHub/gf-core

if there are no productions for a function, don't create PgfConcrLin at all

This commit is contained in:
krangelov
2021-12-14 10:15:32 +01:00
parent 77693dca3e
commit cbcbbc9134

View File

@@ -1934,6 +1934,9 @@ void pgf_create_lin(PgfDB *db,
PgfBuildLinIface *build,
PgfExn *err)
{
if (n_prods == 0)
return;
PGF_API_BEGIN {
DB_scope scope(db, WRITER_SCOPE);