1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Fixed function decl params mangling issue

This commit is contained in:
Brian Fiete 2025-01-31 07:34:39 -08:00
parent 2f7616cd40
commit 717ce118df

View file

@ -329,6 +329,8 @@ void BfGNUMangler::MangleTypeInst(MangleContext& mangleContext, StringImpl& name
name += "__varargs";
continue;
}
if (methodDef->mParams[paramIdx]->mParamKind == BfParamKind_Params)
name += "_params_";
typeVec.push_back(BfNodeDynCast<BfDirectTypeReference>(methodDef->mParams[paramIdx]->mTypeRef)->mType);
}
for (auto type : typeVec)
@ -1273,6 +1275,8 @@ bool BfMSMangler::FindOrCreateNameSub(MangleContext& mangleContext, StringImpl&
name += "__varargs";
continue;
}
if (methodDef->mParams[paramIdx]->mParamKind == BfParamKind_Params)
name += "_params_";
typeVec.push_back(BfNodeDynCast<BfDirectTypeReference>(methodDef->mParams[paramIdx]->mTypeRef)->mType);
}
name += '@';