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:
parent
c3e6282a8b
commit
e6fdfa39d0
2 changed files with 9 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue