3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-11 08:33:26 +00:00

Merge pull request #5163 from YosysHQ/emil/fix-single-bit-vector-leak

simplify: fix single_bit_vector memory leak
This commit is contained in:
Emil J 2025-06-04 17:00:54 +02:00 committed by GitHub
commit 378add3723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2087,7 +2087,7 @@ bool AstNode::simplify(bool const_fold, int stage, int width_hint, bool sign_hin
std::swap(range_left, range_right);
range_swapped = force_upto;
}
if (range_left == range_right)
if (range_left == range_right && !attributes.count(ID::single_bit_vector))
set_attribute(ID::single_bit_vector, mkconst_int(1, false));
}
} else {