3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-12 09:03:27 +00:00
This commit is contained in:
Emil J. Tywoniak 2025-05-23 20:23:23 +02:00
parent d9943b3727
commit 91503e07dc

View file

@ -1925,8 +1925,6 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
// Prepare replacement node.
newNode = template_node->clone();
newNode->str = str;
if (newNode->attributes.count(ID::wiretype))
delete newNode->attributes[ID::wiretype];
newNode->set_attribute(ID::wiretype, mkconst_str(resolved_type_node->str));
newNode->is_input = is_input;
newNode->is_output = is_output;
@ -2089,10 +2087,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
range_swapped = false;
range_left = 0;
range_right = 0;
if (attributes.count(ID::single_bit_vector)) {
delete attributes[ID::single_bit_vector];
attributes.erase(ID::single_bit_vector);
}
attributes.erase(ID::single_bit_vector);
}
}