diff options
author | Adrian Thurston <thurston@complang.org> | 2015-01-10 14:30:40 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-01-10 14:30:52 -0500 |
commit | b45f08baf7ac6a1846b7bc80c0fc01d278f2a41b (patch) | |
tree | 98be31b601df7076807966fa0ce2374aa432fca1 /src/resolve.cc | |
parent | bdb1fcfc742eb6ccb8e991ee792077ae6504a2de (diff) | |
download | colm-b45f08baf7ac6a1846b7bc80c0fc01d278f2a41b.tar.gz |
more object-semantics improvements
Diffstat (limited to 'src/resolve.cc')
-rw-r--r-- | src/resolve.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve.cc b/src/resolve.cc index 2756a629..089c9afa 100644 --- a/src/resolve.cc +++ b/src/resolve.cc @@ -113,7 +113,7 @@ UniqueType *TypeRef::resolveTypeList( Compiler *pd ) /* Find the offset of the list element. */ int off = 0; ObjectField *listEl = 0; - FieldList *fieldList = utValue->structEl->context->objectDef->fieldList; + FieldList *fieldList = utValue->structEl->structDef->objectDef->fieldList; for ( FieldList::Iter f = *fieldList; f.lte(); f++, off++ ) { UniqueType *fUT = f->value->typeRef->resolveType( pd ); if ( fUT->typeId == TYPE_GENERIC && fUT->generic != 0 && @@ -717,7 +717,7 @@ void Compiler::resolveParseTree() } for ( StructElList::Iter sel = structEls; sel.lte(); sel++ ) { - ObjectDef *objDef = sel->context->objectDef; + ObjectDef *objDef = sel->structDef->objectDef; for ( FieldList::Iter f = *objDef->fieldList; f.lte(); f++ ) f->value->typeRef->resolveType( this ); } |