Internals: Fix compiler warning last commit

This commit is contained in:
Wilson Snyder 2025-08-30 08:22:22 -04:00
parent b6ecffeb60
commit 14ec6258d9
1 changed files with 1 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ private:
// Clear output variable
initVar(VN_CAST(funcp->fvarp(), Var));
// Clear other automatic variables
funcp->foreach([this, &oldValues](AstVar* varp) {
funcp->foreach([this](AstVar* varp) {
if (varp->lifetime().isAutomatic() && !varp->isIO()) initVar(varp);
});
}