mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 08:33:38 +02:00
Internals: Mark Premit temporaries funcLocal, noReset (#7160)
This commit is contained in:
@@ -91,6 +91,8 @@ class PremitVisitor final : public VNVisitor {
|
||||
// Keep as local temporary.
|
||||
const std::string name = "__Vtemp_" + std::to_string(++m_tmpVarCnt);
|
||||
varp = new AstVar{flp, VVarType::STMTTEMP, name, nodep->dtypep()};
|
||||
varp->funcLocal(true);
|
||||
varp->noReset(true);
|
||||
m_cfuncp->addVarsp(varp);
|
||||
++m_temporaryVarsCreated;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user