vhdlpp: Skip writing '=>' for ExpAggregates if there are no fields specified.

This commit is contained in:
Maciej Suminski 2014-09-09 16:29:31 +02:00
parent 01b4d49d4a
commit 251b75003f
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ void ExpAggregate::element_t::write_to_stream(ostream&fd) const
(*cur)->write_to_stream(fd);
}
fd << "=>";
if(!fields_.empty())
fd << "=>";
val_->write_to_stream(fd);
}