mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix V3Unknown unpacked struct x-assign (#4934)
This commit is contained in:
+3
-1
@@ -471,7 +471,9 @@ class UnknownVisitor final : public VNVisitor {
|
||||
VL_DO_DANGLING(condp->deleteTree(), condp);
|
||||
} else if (!lvalue
|
||||
// Making a scalar would break if we're making an array
|
||||
&& !VN_IS(nodep->dtypep()->skipRefp(), NodeArrayDType)) {
|
||||
&& !VN_IS(nodep->dtypep()->skipRefp(), NodeArrayDType)
|
||||
&& !(VN_IS(nodep->dtypep()->skipRefp(), NodeUOrStructDType)
|
||||
&& !VN_CAST(nodep->dtypep()->skipRefp(), NodeUOrStructDType)->packed())) {
|
||||
// ARRAYSEL(...) -> COND(LT(bit<maxbit), ARRAYSEL(...), {width{1'bx}})
|
||||
VNRelinker replaceHandle;
|
||||
nodep->unlinkFrBack(&replaceHandle);
|
||||
|
||||
Reference in New Issue
Block a user