diff options
Diffstat (limited to 'src/declare.cc')
-rw-r--r-- | src/declare.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declare.cc b/src/declare.cc index 48d77134..28e57f5f 100644 --- a/src/declare.cc +++ b/src/declare.cc @@ -374,7 +374,7 @@ void Namespace::declare( Compiler *pd ) for ( StructDefList::Iter s = structDefList; s.lte(); s++ ) { if ( s != pd->stream ) { - StructEl *sel = declareStruct( pd, this, s->name, s->context ); + StructEl *sel = declareStruct( pd, this, s->name, s ); /* If the token has the same name as the region it is in, then also * insert it into the symbol map for the parent region. */ @@ -388,8 +388,6 @@ void Namespace::declare( Compiler *pd ) if ( s == pd->global ) pd->globalSel = sel; - if ( s == pd->stream ) - pd->streamSel = sel; } } |