diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 5271a3111..9f636c5a2 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -411,7 +411,7 @@ struct RTLIL::IdString } bool empty() const { - return c_str()[0] == 0; + return index_ == 0; } void clear() {