mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 21:38:45 +00:00
sigspec: remove asserts
This commit is contained in:
parent
36fe6d4c56
commit
6e3bf76ea4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue