From: Clifford Wolf Date: Wed, 23 Jul 2014 19:42:44 +0000 (+0200) Subject: Disabled RTLIL::SigSpec::check() in release builds X-Git-Tag: yosys-0.4~465 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f368d792fbe6a4430dbf710b11e89cbf58439542;p=yosys.git Disabled RTLIL::SigSpec::check() in release builds --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index 7d630b352..b0958bd0d 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1808,6 +1808,7 @@ RTLIL::SigSpec RTLIL::SigSpec::repeat(int num) const void RTLIL::SigSpec::check() const { +#ifndef NDEBUG if (packed()) { int w = 0; @@ -1836,6 +1837,7 @@ void RTLIL::SigSpec::check() const assert(width_ == SIZE(bits_)); assert(chunks_.empty()); } +#endif } bool RTLIL::SigSpec::operator <(const RTLIL::SigSpec &other) const