From d5a18c99fe0a95cb0b0f6feacbce51c5e966e8c3 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 23 Dec 2022 13:00:34 -0500 Subject: [PATCH] fungetc has lvalue character argument. --- src/V3LinkLValue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3LinkLValue.cpp b/src/V3LinkLValue.cpp index 692339ed3..19684bf9a 100644 --- a/src/V3LinkLValue.cpp +++ b/src/V3LinkLValue.cpp @@ -193,6 +193,7 @@ private: { m_setRefLvalue = VAccess::WRITE; iterateAndNextNull(nodep->filep()); + iterateAndNextNull(nodep->rhsp()); } } void visit(AstSScanF* nodep) override { @@ -203,8 +204,7 @@ private: } } void visit(AstSysIgnore* nodep) override { - // Can't know if lvalue or not; presume so as stricter - VL_RESTORER(m_setRefLvalue); + // Can't know if lvalue or not; presume not iterateChildren(nodep); } void visit(AstRand* nodep) override {