mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed valueless const issue
This commit is contained in:
parent
8aa3e8ff22
commit
2a6c94c9fc
1 changed files with 4 additions and 0 deletions
|
@ -2655,6 +2655,10 @@ void BfIRBuilder::CreateDbgTypeDefinition(BfType* type)
|
||||||
DbgCreateGlobalVariable(diForwardDecl, fieldName, staticVarName, fileDIScope, 0,
|
DbgCreateGlobalVariable(diForwardDecl, fieldName, staticVarName, fileDIScope, 0,
|
||||||
constDIType, false, staticValue, memberType);
|
constDIType, false, staticValue, memberType);
|
||||||
}
|
}
|
||||||
|
else if (resolvedFieldType->IsValuelessType())
|
||||||
|
{
|
||||||
|
// Do nothing
|
||||||
|
}
|
||||||
else if ((resolvedFieldType->IsObjectOrInterface()) || (resolvedFieldType->IsPointer()) || (resolvedFieldType->IsSizedArray()))
|
else if ((resolvedFieldType->IsObjectOrInterface()) || (resolvedFieldType->IsPointer()) || (resolvedFieldType->IsSizedArray()))
|
||||||
{
|
{
|
||||||
bool useIntConstant = false;
|
bool useIntConstant = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue