1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed type alias hash crash

This commit is contained in:
Brian Fiete 2020-06-14 08:50:28 -07:00
parent 3d191b6cc5
commit f251b6e58e

View file

@ -2563,6 +2563,11 @@ int BfResolvedTypeSet::Hash(BfTypeReference* typeRef, LookupContext* ctx, BfHash
if ((resolvedType != NULL) && (resolvedType->IsTypeAlias()))
{
auto underlyingType = resolvedType->GetUnderlyingType();
if (underlyingType == NULL)
{
ctx->mFailed = true;
return 0;
}
return Hash(underlyingType, ctx, flags);
}
}