Extend the information preserved in TypeInfo by replacing the AlignIsRequired bool flag with a three-valued enum, the enum also indicates where the alignment attribute come from, which could be helpful in determining whether the attribute should overrule.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks. Generally looks good; feel free to commit after adding a RequiredByEnum case and making sure it compiles.
clang/lib/AST/ASTContext.cpp | ||
---|---|---|
2300 | Oh, I guess "record" is imprecise here. We might as well add a RequiredByEnum case, then, just to be fully accurate; there's no real harm to it. | |
clang/lib/AST/RecordLayoutBuilder.cpp | ||
1981–1982 | Bug here. |
Oh, I guess "record" is imprecise here. We might as well add a RequiredByEnum case, then, just to be fully accurate; there's no real harm to it.