Fix error when dotted refers to missing module (#2095).

This commit is contained in:
Wilson Snyder
2020-12-12 20:25:00 -05:00
parent 44765e03a3
commit 18f8c8a14f
5 changed files with 44 additions and 0 deletions
+4
View File
@@ -645,6 +645,10 @@ public:
if (AstNodeModule* modp = cellp->modp()) {
if (modp->hierBlock()) {
refLocationp->v3error("Cannot access inside hierarchical block");
} else if (VN_IS(modp, NotFoundModule)) {
refLocationp->v3error(
"Dotted reference to cell that refers to missing module: "
<< modp->prettyNameQ());
}
}
}