Fix incorrect return in DFG decomposition

Fixes #3676
This commit is contained in:
Geza Lore
2022-10-17 14:41:20 +01:00
parent 5e79652922
commit 840e26b69a
3 changed files with 42 additions and 2 deletions
+2 -2
View File
@@ -405,14 +405,14 @@ class ExtractCyclicComponents final {
if (!varp->hasSinks() && varp->arity() == 0) {
VL_DO_DANGLING(varp->unlinkDelete(dfg), varp);
}
return;
continue;
}
if (DfgVarArray* const varp = vtxp->cast<DfgVarArray>()) {
varp->packSources();
if (!varp->hasSinks() && varp->arity() == 0) {
VL_DO_DANGLING(varp->unlinkDelete(dfg), varp);
}
return;
continue;
}
}
}