| 500 | } |
| 501 | |
| 502 | inline size_t InlineAlignment(const Type &type) { |
| 503 | if (IsStruct(type)) { |
| 504 | return type.struct_def->minalign; |
| 505 | } else if (IsArray(type)) { |
| 506 | return IsStruct(type.VectorType()) ? type.struct_def->minalign |
| 507 | : SizeOf(type.element); |
| 508 | } else { |
| 509 | return SizeOf(type.base_type); |
| 510 | } |
| 511 | } |
| 512 | inline bool operator==(const EnumVal &lhs, const EnumVal &rhs) { |
| 513 | return lhs.value == rhs.value; |
| 514 | } |
no test coverage detected