Fix unused/hard-coded argument

No functional change.
This commit is contained in:
Geza Lore 2023-04-13 12:11:39 +01:00
parent e1683afb31
commit 37e7b5dfc7
1 changed files with 3 additions and 2 deletions

View File

@ -311,10 +311,11 @@ struct TriggerKit {
// No VL_UNCOPYABLE(TriggerKit) as causes C++20 errors on MSVC
// Utility that assigns the given index trigger to fire when the given variable is zero
void addFirstIterationTriggerAssignment(AstVarScope* counterp, uint32_t /*index*/) const {
void addFirstIterationTriggerAssignment(AstVarScope* counterp, uint32_t index) const {
FileLine* const flp = counterp->fileline();
AstVarRef* const vrefp = new AstVarRef{flp, m_vscp, VAccess::WRITE};
AstCMethodHard* const callp = new AstCMethodHard{flp, vrefp, "at", new AstConst{flp, 0}};
AstCMethodHard* const callp
= new AstCMethodHard{flp, vrefp, "at", new AstConst{flp, index}};
callp->dtypeSetBit();
callp->pure(true);
m_funcp->stmtsp()->addHereThisAsNext(new AstAssign{