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

varargs mangle fix

This commit is contained in:
Brian Fiete 2021-05-28 06:53:00 -04:00
parent 894ee7cbcf
commit b1717a0722

View file

@ -318,6 +318,11 @@ void BfGNUMangler::MangleTypeInst(MangleContext& mangleContext, StringImpl& name
{
name += "_";
name += methodDef->mParams[paramIdx]->mName;
if (methodDef->mParams[paramIdx]->mParamKind == BfParamKind_VarArgs)
{
name += "__varargs";
continue;
}
typeVec.push_back(BfNodeDynCast<BfDirectTypeReference>(methodDef->mParams[paramIdx]->mTypeRef)->mType);
}
for (auto type : typeVec)