aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/genrtlil.cc
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-05-08 05:30:32 +0000
committerGitHub <noreply@github.com>2020-05-08 05:30:32 +0000
commitebfdf61eb9703a16f949470f98509fdb405adf8f (patch)
treec5d9c3b6dd337630c50f75fb98a87f6897ef6a9c /frontends/ast/genrtlil.cc
parent5b779f7f4ef0bf2c4ad3a412da24fad30b078626 (diff)
parentd86fc791f9016fa6dafa7af1758ef301136e9eec (diff)
downloadyosys-ebfdf61eb9703a16f949470f98509fdb405adf8f.tar.gz
yosys-ebfdf61eb9703a16f949470f98509fdb405adf8f.tar.bz2
yosys-ebfdf61eb9703a16f949470f98509fdb405adf8f.zip
Merge pull request #2022 from Xiretza/fallthroughs
Avoid switch fall-through warnings
Diffstat (limited to 'frontends/ast/genrtlil.cc')
-rw-r--r--frontends/ast/genrtlil.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/ast/genrtlil.cc b/frontends/ast/genrtlil.cc
index 05bea69c1..d4e9baa5f 100644
--- a/frontends/ast/genrtlil.cc
+++ b/frontends/ast/genrtlil.cc
@@ -930,7 +930,7 @@ void AstNode::detectSignWidthWorker(int &width_hint, bool &sign_hint, bool *foun
}
break;
}
- /* fall through */
+ YS_FALLTHROUGH
// everything should have been handled above -> print error if not.
default:
@@ -1026,7 +1026,7 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
if (GetSize(children) >= 1 && children[0]->type == AST_CONSTANT) {
current_module->parameter_default_values[str] = children[0]->asParaConst();
}
- /* fall through */
+ YS_FALLTHROUGH
case AST_LOCALPARAM:
if (flag_pwires)
{
@@ -1822,7 +1822,8 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
is_signed = sign_hint;
return SigSpec(wire);
}
- } /* fall through */
+ }
+ YS_FALLTHROUGH
// everything should have been handled above -> print error if not.
default: