diff options
author | Xiretza <xiretza@xiretza.xyz> | 2020-05-07 11:44:38 +0200 |
---|---|---|
committer | Xiretza <xiretza@xiretza.xyz> | 2020-05-07 13:39:34 +0200 |
commit | d86fc791f9016fa6dafa7af1758ef301136e9eec (patch) | |
tree | fe86460a1d0027fe18b1e7babbdda62288f6c3df /backends | |
parent | 695150b0378528233837348b598033b137b8a949 (diff) | |
download | yosys-d86fc791f9016fa6dafa7af1758ef301136e9eec.tar.gz yosys-d86fc791f9016fa6dafa7af1758ef301136e9eec.tar.bz2 yosys-d86fc791f9016fa6dafa7af1758ef301136e9eec.zip |
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.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cxxrtl/cxxrtl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/cxxrtl/cxxrtl.cc b/backends/cxxrtl/cxxrtl.cc index 133f56663..f3ed3f623 100644 --- a/backends/cxxrtl/cxxrtl.cc +++ b/backends/cxxrtl/cxxrtl.cc @@ -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"); } } |