1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Properly ignore [Inline] on calls to externs and intrinsics

This commit is contained in:
Brian Fiete 2021-06-07 11:11:44 -07:00
parent c3e6282a8b
commit e6fdfa39d0
2 changed files with 9 additions and 0 deletions

View file

@ -14747,6 +14747,7 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
if ((mModule->mAttributeState != NULL) && (mModule->mAttributeState->mCustomAttributes != NULL) && (mModule->mAttributeState->mCustomAttributes->Contains(mModule->mCompiler->mInlineAttributeTypeDef)))
{
flags = (BfGetMethodInstanceFlags)(flags | BfGetMethodInstanceFlag_ForceInline);
mModule->mAttributeState->mUsed = true;
}
if ((!mModule->mCurTypeInstance->IsInterface()) && (methodDef->mBody != NULL))