mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix C++20 compilation errors (#4670)
This commit is contained in:
@@ -184,7 +184,7 @@ class SchedGraphBuilder final : public VNVisitor {
|
||||
|
||||
// Clocked or hybrid logic has explicit sensitivity, so add edge from sensitivity vertex
|
||||
if (!m_senTreep->hasCombo()) {
|
||||
m_senTreep->foreach([=](AstSenItem* senItemp) {
|
||||
m_senTreep->foreach([this, nodep, logicVtxp](AstSenItem* senItemp) {
|
||||
if (senItemp->isIllegal()) return;
|
||||
UASSERT_OBJ(senItemp->isClocked() || senItemp->isHybrid(), nodep,
|
||||
"Non-clocked SenItem under clocked SenTree");
|
||||
@@ -194,7 +194,7 @@ class SchedGraphBuilder final : public VNVisitor {
|
||||
}
|
||||
|
||||
// Add edges based on references
|
||||
nodep->foreach([=](const AstVarRef* vrefp) {
|
||||
nodep->foreach([this, logicVtxp](const AstVarRef* vrefp) {
|
||||
AstVarScope* const vscp = vrefp->varScopep();
|
||||
if (vrefp->access().isReadOrRW() && m_readTriggersThisLogic(vscp)) {
|
||||
new V3GraphEdge{m_graphp, getVarVertex(vscp), logicVtxp, 10};
|
||||
@@ -206,7 +206,7 @@ class SchedGraphBuilder final : public VNVisitor {
|
||||
|
||||
// If the logic calls a 'context' DPI import, it might fire the DPI Export trigger
|
||||
if (m_dpiExportTriggerp) {
|
||||
nodep->foreach([=](const AstCCall* callp) {
|
||||
nodep->foreach([this, logicVtxp](const AstCCall* callp) {
|
||||
if (!callp->funcp()->dpiImportWrapper()) return;
|
||||
if (!callp->funcp()->dpiContext()) return;
|
||||
new V3GraphEdge{m_graphp, logicVtxp, getVarVertex(m_dpiExportTriggerp), 10};
|
||||
|
||||
Reference in New Issue
Block a user