Skip to content

Commit dec30cb

Browse files
committed
Fix CreateFieldData for generic fields
1 parent a80396d commit dec30cb

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

IDEHelper/Compiler/BfModule.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6094,12 +6094,8 @@ BfIRValue BfModule::CreateFieldData(BfFieldInstance* fieldInstance, int customAt
60946094

60956095
int typeId = 0;
60966096
auto fieldType = fieldInstance->GetResolvedType();
6097-
if (fieldType->IsGenericParam())
6098-
{
6099-
//TODO:
6100-
}
6101-
else
6102-
typeId = fieldType->mTypeId;
6097+
//NOTE: This was originally not populated for IsGenericParam types. Can't remember why.
6098+
typeId = fieldType->mTypeId;
61036099

61046100
BfFieldFlags fieldFlags = (BfFieldFlags)0;
61056101

0 commit comments

Comments
 (0)