Fix selects on unpacked structs (#4359)

This commit is contained in:
Ryszard Rozak
2023-07-25 12:50:24 +02:00
committed by GitHub
parent 3ff608b9cb
commit fd0703b8c8
4 changed files with 46 additions and 7 deletions
-5
View File
@@ -235,11 +235,6 @@ private:
operandTriop(nodep);
setClean(nodep, nodep->cleanOut());
}
void visit(AstStructSel* nodep) override {
iterateChildren(nodep);
AstStructDType* dtypep = VN_CAST(nodep->dtypep()->skipRefp(), StructDType);
setClean(nodep, dtypep && !dtypep->packed());
}
void visit(AstUCFunc* nodep) override {
iterateChildren(nodep);
computeCppWidth(nodep);