mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Support unpacked unions.
This commit is contained in:
+3
-3
@@ -97,9 +97,9 @@ private:
|
||||
|| VN_IS(nodep->dtypep()->skipRefp(), UnpackArrayDType)
|
||||
|| VN_IS(nodep->dtypep()->skipRefp(), VoidDType)) {
|
||||
} else {
|
||||
const AstStructDType* const dtypep
|
||||
= VN_CAST(nodep->dtypep()->skipRefp(), StructDType);
|
||||
if (!dtypep || dtypep->packed()) { setCppWidth(nodep); }
|
||||
const AstNodeUOrStructDType* const dtypep
|
||||
= VN_CAST(nodep->dtypep()->skipRefp(), NodeUOrStructDType);
|
||||
if (!dtypep || dtypep->packed()) setCppWidth(nodep);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user