mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix dynamic array elements passed to ref argument (#6877)
This commit is contained in:
+5
-2
@@ -534,8 +534,11 @@ class TaskVisitor final : public VNVisitor {
|
||||
refArgOk = cMethodp->method() == VCMethod::DYN_AT_WRITE_APPEND
|
||||
|| cMethodp->method() == VCMethod::DYN_AT_WRITE_APPEND_BACK;
|
||||
} else {
|
||||
refArgOk = cMethodp->method() == VCMethod::ARRAY_AT
|
||||
|| cMethodp->method() == VCMethod::ARRAY_AT_BACK;
|
||||
if (cMethodp->method() == VCMethod::ARRAY_AT) {
|
||||
// Change the method to writable variant
|
||||
cMethodp->method(VCMethod::ARRAY_AT_WRITE);
|
||||
}
|
||||
refArgOk = cMethodp->method() == VCMethod::ARRAY_AT_WRITE;
|
||||
}
|
||||
}
|
||||
if (refArgOk) {
|
||||
|
||||
Reference in New Issue
Block a user