summaryrefslogtreecommitdiff
path: root/kernel/rtlil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.cc')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 7d630b35..b0958bd0 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