3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-15 21:38:45 +00:00

sigspec: remove asserts

This commit is contained in:
Emil J. Tywoniak 2024-07-14 23:25:15 +02:00
parent 36fe6d4c56
commit 6e3bf76ea4

View file

@ -4023,8 +4023,8 @@ RTLIL::SigSpec::SigSpec(bool bit)
void RTLIL::SigSpec::switch_to_packed() const
{
// TODO change to debug asserts
log_assert(!this->packed_);
log_assert(bits_.size() == 0);
// log_assert(!this->packed_);
// log_assert(bits_.size() == 0);
RTLIL::SigSpec *that = (RTLIL::SigSpec*)this;
that->bits_.~vector();
that->packed_ = true;
@ -4034,8 +4034,8 @@ void RTLIL::SigSpec::switch_to_packed() const
void RTLIL::SigSpec::switch_to_unpacked() const
{
// TODO change to debug asserts
log_assert(this->packed_);
log_assert(chunks_.size() == 0);
// log_assert(this->packed_);
// log_assert(chunks_.size() == 0);
RTLIL::SigSpec *that = (RTLIL::SigSpec*)this;
that->chunks_.~vector();
that->packed_ = false;