mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed append mangle early exit
This commit is contained in:
parent
ff54f3ce9c
commit
6cf0152d99
1 changed files with 2 additions and 1 deletions
|
@ -1840,6 +1840,7 @@ void BfMSMangler::Mangle(StringImpl& name, bool is64Bit, BfMethodInstance* metho
|
||||||
static int mangleIdx = 0;
|
static int mangleIdx = 0;
|
||||||
mangleIdx++;
|
mangleIdx++;
|
||||||
|
|
||||||
|
int startNameLen = name.mLength;
|
||||||
if ((methodInst->mMethodDef->mCLink) && (!methodInst->mMangleWithIdx))
|
if ((methodInst->mMethodDef->mCLink) && (!methodInst->mMangleWithIdx))
|
||||||
{
|
{
|
||||||
name += methodInst->mMethodDef->mName;
|
name += methodInst->mMethodDef->mName;
|
||||||
|
@ -1860,7 +1861,7 @@ void BfMSMangler::Mangle(StringImpl& name, bool is64Bit, BfMethodInstance* metho
|
||||||
HandleCustomAttributes(methodInst->GetCustomAttributes(), typeInst->mConstHolder, mangleContext.mModule, name, isCMangle, mangleContext.mCPPMangle);
|
HandleCustomAttributes(methodInst->GetCustomAttributes(), typeInst->mConstHolder, mangleContext.mModule, name, isCMangle, mangleContext.mCPPMangle);
|
||||||
if (isCMangle)
|
if (isCMangle)
|
||||||
name += methodInst->mMethodDef->mName;
|
name += methodInst->mMethodDef->mName;
|
||||||
if (!name.IsEmpty())
|
if (name.mLength > startNameLen)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
name += '?';
|
name += '?';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue