From 6e3bf76ea49a03503e1bb8a26d5a36f3866ec1b8 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Sun, 14 Jul 2024 23:25:15 +0200 Subject: [PATCH] sigspec: remove asserts --- kernel/rtlil.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index a40614913..a76e0d713 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -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;