mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix error when dotted refers to missing module (#2095).
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user