Add ALWNEVER warning, for always @* that never execute (#6291) (#6303)

This commit is contained in:
Wilson Snyder
2025-08-18 12:00:53 -04:00
committed by GitHub
parent 53c59e7ac7
commit c90f9e53b7
23 changed files with 192 additions and 42 deletions
+5 -3
View File
@@ -162,9 +162,11 @@ class SchedGraphBuilder final : public VNVisitor {
SchedSenVertex* const vtxp = new SchedSenVertex{m_graphp, senItemp};
// Connect up the variable references
senItemp->sensp()->foreach([&](AstVarRef* refp) {
new V3GraphEdge{m_graphp, getVarVertex(refp->varScopep()), vtxp, 1};
});
if (senItemp->sensp()) {
senItemp->sensp()->foreach([&](AstVarRef* refp) {
new V3GraphEdge{m_graphp, getVarVertex(refp->varScopep()), vtxp, 1};
});
}
// Store back to hash map so we can find it next time
pair.first->second = vtxp;