Fix C++20 compilation errors (#4670)

This commit is contained in:
Wilson Snyder
2023-11-06 07:13:31 -05:00
committed by GitHub
parent 27102ea0fb
commit dc10118d3b
11 changed files with 118 additions and 109 deletions
+2 -2
View File
@@ -292,11 +292,11 @@ class ExtractCyclicComponents final {
// Visit all neighbors. We stop at variable boundaries,
// which is where we will split the graphs
vtx.forEachSource([=](DfgVertex& other) {
vtx.forEachSource([this, targetComponent](DfgVertex& other) {
if (other.is<DfgVertexVar>()) return;
visitMergeSCCs(other, targetComponent);
});
vtx.forEachSink([=](DfgVertex& other) {
vtx.forEachSink([this, targetComponent](DfgVertex& other) {
if (other.is<DfgVertexVar>()) return;
visitMergeSCCs(other, targetComponent);
});