Fix an assertion failure when a variable name is replicated in the same list.

(cherry picked from commit 61aed6882c)
This commit is contained in:
Martin Whitaker 2021-11-07 17:41:11 +00:00
parent c00104bc50
commit c7ee6157fc
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ void PWire::set_unpacked_idx(const list<pform_range_t>&ranges)
void PWire::set_data_type(data_type_t*type)
{
assert(set_data_type_ == 0);
assert(set_data_type_ == 0 || set_data_type_ == type);
set_data_type_ = type;
if (vector_type_t*tmp = dynamic_cast<vector_type_t*>(type)) {