1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed undef const expression mangling

This commit is contained in:
Brian Fiete 2020-12-25 15:22:22 -08:00
parent 066a7fce09
commit b47fd88660

View file

@ -656,6 +656,9 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
name += strP; name += strP;
name += '`'; name += '`';
} }
if (constExprValueType->mValue.mTypeCode == BfTypeCode_Let)
name += "Undef";
} }
else else
{ {
@ -1756,6 +1759,8 @@ void BfMSMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType*
name += "$"; name += "$";
} }
MangleConst(mangleContext, name, val); MangleConst(mangleContext, name, val);
if (constExprValueType->mValue.mTypeCode == BfTypeCode_Let)
name += "Undef";
} }
else else
{ {