summaryrefslogtreecommitdiff
path: root/colm/compile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'colm/compile.cpp')
-rw-r--r--colm/compile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/colm/compile.cpp b/colm/compile.cpp
index d4d2f503..19f42293 100644
--- a/colm/compile.cpp
+++ b/colm/compile.cpp
@@ -2091,7 +2091,9 @@ void ParseData::findLocalTrees( CharSet &trees )
* the frame is is cleaned and so it must survive. */
for ( ObjFieldMap::Iter of = *curLocalFrame->objFieldMap; of.lte(); of++ ) {
ObjField *el = of->value;
- if ( !el->isLhsEl && el->beenReferenced ) {
+ /* FIXME: This test needs to be improved. Match_text was getting
+ * through before useOffset was tested. What will? */
+ if ( el->useOffset && !el->isLhsEl && el->beenReferenced ) {
UniqueType *ut = el->typeRef->lookupType( this );
if ( ut->typeId == TYPE_TREE || ut->typeId == TYPE_PTR )
trees.insert( el->offset );