mirror of https://github.com/YosysHQ/yosys.git
Reorder cases to avoid fall-through warning
log_assert(false) never returns and thus can't fall through, but gcc doesn't seem to think that far. Making it the last case avoids the problem entirely.
This commit is contained in:
parent
695150b037
commit
d86fc791f9
|
@ -1943,13 +1943,13 @@ struct CxxrtlWorker {
|
|||
case RTLIL::STa:
|
||||
break;
|
||||
|
||||
case RTLIL::STg:
|
||||
log_cmd_error("Global clock is not supported.\n");
|
||||
|
||||
// Handling of init-type sync rules is delegated to the `proc_init` pass, so we can use the wire
|
||||
// attribute regardless of input.
|
||||
case RTLIL::STi:
|
||||
log_assert(false);
|
||||
|
||||
case RTLIL::STg:
|
||||
log_cmd_error("Global clock is not supported.\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue