Internals: Add assertions. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-01-25 10:19:59 -05:00
parent d64e6b3f9c
commit eafed88a6e
6 changed files with 10 additions and 4 deletions
+1
View File
@@ -1036,6 +1036,7 @@ private:
}
virtual void visit(AstVarScope* nodep) VL_OVERRIDE {
// Create links to all input signals
UASSERT_OBJ(m_modp, nodep, "Scope not under module");
if (m_modp->isTop() && nodep->varp()->isNonOutput()) {
OrderVarVertex* varVxp = newVarUserVertex(nodep, WV_STD);
new OrderEdge(&m_graph, m_inputsVxp, varVxp, WEIGHT_INPUT);