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

Fixed reflection issue

This commit is contained in:
Brian Fiete 2020-07-06 16:12:48 -07:00
parent 2226e51977
commit 6e6487d951
4 changed files with 26 additions and 10 deletions

View file

@ -2068,7 +2068,7 @@ public:
#endif
void BfIRBuilder::CreateTypeDeclaration(BfType* type, bool forceDbgDefine)
{
{
bool wantDIData = DbgHasInfo() && (!type->IsUnspecializedType());
// Types that don't have a proper 'defining module' need to be defined in every module they are used
@ -2547,7 +2547,7 @@ void BfIRBuilder::CreateDbgTypeDefinition(BfType* type)
{
auto payloadType = fieldInstance->mResolvedType;
if (payloadType == NULL)
payloadType = mModule->CreateTupleType(BfTypeVector(), Array<String>());
payloadType = mModule->CreateTupleType(BfTypeVector(), Array<String>());
String fieldName = StrFormat("_%d_%s", -fieldInstance->mDataIdx - 1, fieldDef->mName.c_str());