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

Fixed valueless const issue

This commit is contained in:
Brian Fiete 2020-08-10 05:00:42 -07:00
parent 8aa3e8ff22
commit 2a6c94c9fc

View file

@ -2655,6 +2655,10 @@ void BfIRBuilder::CreateDbgTypeDefinition(BfType* type)
DbgCreateGlobalVariable(diForwardDecl, fieldName, staticVarName, fileDIScope, 0,
constDIType, false, staticValue, memberType);
}
else if (resolvedFieldType->IsValuelessType())
{
// Do nothing
}
else if ((resolvedFieldType->IsObjectOrInterface()) || (resolvedFieldType->IsPointer()) || (resolvedFieldType->IsSizedArray()))
{
bool useIntConstant = false;