mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "V3Randomize.h"
|
||||
|
||||
#include "V3Ast.h"
|
||||
#include "V3Const.h"
|
||||
#include "V3Error.h"
|
||||
#include "V3FileLine.h"
|
||||
#include "V3Global.h"
|
||||
@@ -2852,6 +2853,9 @@ class ConstraintExprVisitor final : public VNVisitor {
|
||||
}
|
||||
VL_DO_DANGLING(elemSelp->deleteTree(), elemSelp);
|
||||
|
||||
// enum-literal folding pass already ran -- re-fold the literals.
|
||||
perElemExprp = V3Const::constifyEdit(perElemExprp);
|
||||
|
||||
perElemExprp->foreach([&](AstNode* nodep) {
|
||||
// Don't mark loop variable references as randomizable
|
||||
if (!VN_IS(nodep, Const)) {
|
||||
|
||||
Reference in New Issue
Block a user