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

This commit is contained in:
Martin Whitaker 2021-11-07 17:41:11 +00:00
parent 3c23180af3
commit 61aed6882c
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)) {