mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
mangleContext.mModule null check
This commit is contained in:
parent
d06f2c0e59
commit
e713e6ebc7
1 changed files with 4 additions and 4 deletions
|
@ -458,13 +458,13 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
|
|||
case BfTypeCode_UInt32:
|
||||
name += "j"; return;
|
||||
case BfTypeCode_Int64:
|
||||
if (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8)
|
||||
if ((mangleContext.mModule == NULL) || (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8))
|
||||
name += "l";
|
||||
else
|
||||
name += "x";
|
||||
return;
|
||||
case BfTypeCode_UInt64:
|
||||
if (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8)
|
||||
if ((mangleContext.mModule == NULL) || (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8))
|
||||
name += "m";
|
||||
else
|
||||
name += "y";
|
||||
|
@ -472,7 +472,7 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
|
|||
case BfTypeCode_UIntPtr:
|
||||
if ((mangleContext.mCCompat) || (mangleContext.mInArgs))
|
||||
{
|
||||
if (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8)
|
||||
if ((mangleContext.mModule == NULL) || (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8))
|
||||
name += (primType->mSize == 8) ? "m" : "j";
|
||||
else
|
||||
name += (primType->mSize == 8) ? "y" : "j";
|
||||
|
@ -483,7 +483,7 @@ void BfGNUMangler::Mangle(MangleContext& mangleContext, StringImpl& name, BfType
|
|||
case BfTypeCode_IntPtr:
|
||||
if ((mangleContext.mCCompat) || (mangleContext.mInArgs))
|
||||
{
|
||||
if (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8)
|
||||
if ((mangleContext.mModule == NULL) || (mangleContext.mModule->mCompiler->mOptions.mCLongSize == 8))
|
||||
name += (primType->mSize == 8) ? "l" : "i";
|
||||
else
|
||||
name += (primType->mSize == 8) ? "x" : "i";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue