Fix queue [$-i] select as reference argument (#5411)

Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
Krzysztof Bieganski
2024-08-28 17:29:12 +02:00
committed by GitHub
parent 5cb6f370e9
commit d896f1ff08
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ class TaskVisitor final : public VNVisitor {
|| VN_IS(pinp, ArraySel)) {
refArgOk = true;
} else if (const AstCMethodHard* const cMethodp = VN_CAST(pinp, CMethodHard)) {
refArgOk = cMethodp->name() == "at";
refArgOk = cMethodp->name() == "at" || cMethodp->name() == "atBack";
}
if (refArgOk) {
if (AstVarRef* const varrefp = VN_CAST(pinp, VarRef)) {