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