mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed type alias hash crash
This commit is contained in:
parent
3d191b6cc5
commit
f251b6e58e
1 changed files with 5 additions and 0 deletions
|
@ -2563,6 +2563,11 @@ int BfResolvedTypeSet::Hash(BfTypeReference* typeRef, LookupContext* ctx, BfHash
|
||||||
if ((resolvedType != NULL) && (resolvedType->IsTypeAlias()))
|
if ((resolvedType != NULL) && (resolvedType->IsTypeAlias()))
|
||||||
{
|
{
|
||||||
auto underlyingType = resolvedType->GetUnderlyingType();
|
auto underlyingType = resolvedType->GetUnderlyingType();
|
||||||
|
if (underlyingType == NULL)
|
||||||
|
{
|
||||||
|
ctx->mFailed = true;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return Hash(underlyingType, ctx, flags);
|
return Hash(underlyingType, ctx, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue