Internals: Set missing timescale though it is not referred yet. (#2946)

This commit is contained in:
Yutetsu TAKATSUKASA 2021-05-11 22:38:13 +09:00 committed by GitHub
parent 00cedf3797
commit f7c23c4ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ private:
// Like newFireAssert() but omits the asserts-on check
AstDisplay* dispp = new AstDisplay(nodep->fileline(), AstDisplayType::DT_ERROR, message,
nullptr, nullptr);
dispp->fmtp()->timeunit(m_modp->timeunit());
AstNode* bodysp = dispp;
replaceDisplay(dispp, "%%Error"); // Convert to standard DISPLAY format
bodysp->addNext(new AstStop(nodep->fileline(), true));