mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Fix foreach and pre/post increment in functions (#3613).
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ private:
|
||||
// Find all var->varscope mappings, for later cleanup
|
||||
for (AstNode* stmtp = nodep->varsp(); stmtp; stmtp = stmtp->nextp()) {
|
||||
if (AstVarScope* const vscp = VN_CAST(stmtp, VarScope)) {
|
||||
if (vscp->varp()->isFuncLocal()) {
|
||||
if (vscp->varp()->isFuncLocal() || vscp->varp()->isUsedLoopIdx()) {
|
||||
UINFO(9, " funcvsc " << vscp << endl);
|
||||
m_varToScopeMap.insert(
|
||||
std::make_pair(std::make_pair(nodep, vscp->varp()), vscp));
|
||||
|
||||
Reference in New Issue
Block a user