proc_clean: fix critical typo.
authorwhitequark <whitequark@whitequark.org>
Wed, 23 Jan 2019 22:08:38 +0000 (22:08 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 23 Jan 2019 22:08:38 +0000 (22:08 +0000)
passes/proc/proc_clean.cc

index 0e2f95226039301c73397b3938dab00f6769f4e6..52141a8ec623d004cf5f1b637b9cda7bcd4f85f9 100644 (file)
@@ -86,7 +86,7 @@ void proc_clean_switch(RTLIL::SwitchRule *sw, RTLIL::CaseRule *parent, bool &did
                        for (auto cmp : cs->compare)
                        {
                                size += cmp.size();
-                               if (cmp.is_fully_def())
+                               if (!cmp.is_fully_def())
                                        all_fully_def = false;
                        }
                        if (sw->signal.size() != size)