Fix checking built-in method arguments (#5839)

This commit is contained in:
Wilson Snyder
2025-03-08 14:11:12 -05:00
parent 24dbb0bc5c
commit 8026b2a7f3
7 changed files with 129 additions and 18 deletions
+1
View File
@@ -392,6 +392,7 @@ class RandomizeMarkVisitor final : public VNVisitor {
exprp = nullptr;
}
if (randVarp == fromVarp) break;
UASSERT_OBJ(randVarp, nodep, "No rand variable found");
AstNode* backp = randVarp;
while (backp && !VN_IS(backp, Class)) backp = backp->backp();
RandomizeMode randMode = {};