summaryrefslogtreecommitdiff
path: root/src/pdabuild.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-02-13 18:36:08 -0500
committerAdrian Thurston <thurston@complang.org>2015-02-13 18:36:08 -0500
commit7971f22167db5f108430e4735e4cc1b492e6bd9d (patch)
tree3a8d0f36a13b7fab5c13c3c5d44dcff859da649d /src/pdabuild.cc
parentccf380421c08b6ec1f8b9c4ce6c62eb1fbf5e1e5 (diff)
downloadcolm-7971f22167db5f108430e4735e4cc1b492e6bd9d.tar.gz
work on value list and value map, can insert into vmap
Diffstat (limited to 'src/pdabuild.cc')
-rw-r--r--src/pdabuild.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdabuild.cc b/src/pdabuild.cc
index 234c83f5..96f601d9 100644
--- a/src/pdabuild.cc
+++ b/src/pdabuild.cc
@@ -1581,6 +1581,9 @@ void Compiler::makeRuntimeData()
gen->typeId == GEN_PARSER ? gen->utArg->langEl->parserId : -1;
runtimeData->genericInfo[gen->id].elOffset =
gen->el != 0 ? gen->el->offset : -1;
+ runtimeData->genericInfo[gen->id].elStructId =
+ gen->typeId == GEN_VMAP ? gen->utArg->structEl->id : -1;
+ runtimeData->genericInfo[gen->id].valueOffset = 0;
}
}