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:
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,
|
||||
constDIType, false, staticValue, memberType);
|
||||
}
|
||||
else if (resolvedFieldType->IsValuelessType())
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
else if ((resolvedFieldType->IsObjectOrInterface()) || (resolvedFieldType->IsPointer()) || (resolvedFieldType->IsSizedArray()))
|
||||
{
|
||||
bool useIntConstant = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue