mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix localize of coroutines (#5972 partial)
This commit is contained in:
@@ -132,6 +132,11 @@ class LocalizeVisitor final : public VNVisitor {
|
||||
moveVarScopes();
|
||||
}
|
||||
|
||||
void visit(AstCAwait* nodep) override {
|
||||
m_cfuncp->user1(true); // Mark caller as not a leaf function
|
||||
iterateChildrenConst(nodep);
|
||||
}
|
||||
|
||||
void visit(AstCFunc* nodep) override {
|
||||
UINFO(4, " CFUNC " << nodep << endl);
|
||||
VL_RESTORER(m_cfuncp);
|
||||
|
||||
Reference in New Issue
Block a user