From 717ce118df0f29559d03d4f4fd29125385950a72 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 31 Jan 2025 07:34:39 -0800 Subject: [PATCH] Fixed function decl params mangling issue --- IDEHelper/Compiler/BfMangler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IDEHelper/Compiler/BfMangler.cpp b/IDEHelper/Compiler/BfMangler.cpp index 40285887..4d322600 100644 --- a/IDEHelper/Compiler/BfMangler.cpp +++ b/IDEHelper/Compiler/BfMangler.cpp @@ -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(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(methodDef->mParams[paramIdx]->mTypeRef)->mType); } name += '@';