mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-07 03:43:19 +02:00
vhdlpp: ExpString::emit distinguishes between array and string types.
This commit is contained in:
@@ -912,10 +912,11 @@ bool ExpString::is_primary(void) const
|
||||
|
||||
int ExpString::emit(ostream& out, Entity*ent, ScopeBase*scope)
|
||||
{
|
||||
const VTypeArray*arr;
|
||||
const VType*type = peek_type();
|
||||
assert(type != 0);
|
||||
|
||||
if (const VTypeArray*arr = dynamic_cast<const VTypeArray*>(type)) {
|
||||
if (type != &primitive_STRING && (arr = dynamic_cast<const VTypeArray*>(type))) {
|
||||
return emit_as_array_(out, ent, scope, arr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user