| 224 | } |
| 225 | |
| 226 | static uint32_t getPadAlignment(const analysis::Type& type, |
| 227 | uint32_t packedAlignment) { |
| 228 | // The next member following a struct member is aligned to the base alignment |
| 229 | // of a previous struct member. |
| 230 | return type.kind() == analysis::Type::kStruct ? packedAlignment : 1; |
| 231 | } |
| 232 | |
| 233 | uint32_t StructPackingPass::getPackedSize(const analysis::Type& type) const { |
| 234 | switch (type.kind()) { |
no test coverage detected