| 10558 | } |
| 10559 | |
| 10560 | void BfModule::ValidateAllocation(BfType* type, BfAstNode* refNode) |
| 10561 | { |
| 10562 | if ((type == NULL) || (refNode == NULL)) |
| 10563 | return; |
| 10564 | auto typeInstance = type->ToTypeInstance(); |
| 10565 | if ((typeInstance != NULL) && (typeInstance->mTypeDef->mIsOpaque)) |
| 10566 | Fail(StrFormat("Unable to allocate opaque type '%s'", TypeToString(type).c_str()), refNode); |
| 10567 | } |
| 10568 | |
| 10569 | void BfModule::EmitAppendAlign(int align, int sizeMultiple) |
| 10570 | { |
no test coverage detected