diff options
author | Adrian Thurston <thurston@colm.net> | 2020-04-14 10:16:51 +0000 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-04-14 10:16:51 +0000 |
commit | d0a2a2ac6cf0b3ff0c070a83e72a301704493796 (patch) | |
tree | 13f4a3986f06001210a1f29d2efbbe9beca44751 /src/pdabuild.cc | |
parent | a39d7909d7b542889481e2b3b7c08df16cc42b61 (diff) | |
download | colm-d0a2a2ac6cf0b3ff0c070a83e72a301704493796.tar.gz |
correct prodNum as we combine productions to implement [...]
refs #112
Diffstat (limited to 'src/pdabuild.cc')
-rw-r--r-- | src/pdabuild.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pdabuild.cc b/src/pdabuild.cc index ae2d4e01..60a23c6b 100644 --- a/src/pdabuild.cc +++ b/src/pdabuild.cc @@ -1455,6 +1455,7 @@ void Compiler::makeRuntimeData() for ( int i = 0; i < nextLelId; i++ ) { LangEl *lel = langElIndex[i]; if ( lel != 0 ) { + assert( lel->id == i ); runtimeData->lel_info[i].name = lel->fullLit; runtimeData->lel_info[i].xml_tag = lel->xmlTag; runtimeData->lel_info[i].repeat = lel->isRepeat; |