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

Added support for C-style vararg methods

This commit is contained in:
Brian Fiete 2020-02-11 07:34:47 -08:00
parent 89e6b0d577
commit 7741344fd2
16 changed files with 129 additions and 68 deletions

View file

@ -4257,7 +4257,7 @@ BfIRFunctionType BfIRBuilder::MapMethod(BfMethodInstance* methodInstance)
SizedArray<BfIRType, 8> paramTypes;
methodInstance->GetIRFunctionInfo(mModule, retType, paramTypes);
auto funcType = CreateFunctionType(retType, paramTypes, false);
auto funcType = CreateFunctionType(retType, paramTypes, methodInstance->IsVarArgs());
if (useCache)
mMethodTypeMap[methodInstance] = funcType;