Remove unnecessary condition
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
264e55f17e
commit
fc87aae963
|
|
@ -357,11 +357,10 @@ private:
|
||||||
if (VN_IS(structp, StructDType)) {
|
if (VN_IS(structp, StructDType)) {
|
||||||
enStructp = new AstStructDType{structp->fileline(),
|
enStructp = new AstStructDType{structp->fileline(),
|
||||||
packed ? VSigning::SIGNED : VSigning::NOSIGN};
|
packed ? VSigning::SIGNED : VSigning::NOSIGN};
|
||||||
} else if (VN_IS(structp, UnionDType) && structp->packed()) {
|
} else if (VN_IS(structp, UnionDType) && packed) {
|
||||||
const AstUnionDType* const unionp = VN_AS(structp, UnionDType);
|
const AstUnionDType* const unionp = VN_AS(structp, UnionDType);
|
||||||
enStructp = new AstUnionDType{unionp->fileline(), unionp->isSoft(),
|
enStructp = new AstUnionDType{unionp->fileline(), unionp->isSoft(),
|
||||||
unionp->isTagged(),
|
unionp->isTagged(), VSigning::SIGNED};
|
||||||
packed ? VSigning::SIGNED : VSigning::NOSIGN};
|
|
||||||
} else {
|
} else {
|
||||||
varp->v3fatalSrc("Unsupported: Force of variable of unhandled data type");
|
varp->v3fatalSrc("Unsupported: Force of variable of unhandled data type");
|
||||||
return dtypep;
|
return dtypep;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue