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

Fixed infinite loop during TryDevirtualizeCall with void call

This commit is contained in:
Brian Fiete 2022-02-12 15:03:41 -05:00
parent 1b7dbd7288
commit 8b2aae11d1

View file

@ -2862,6 +2862,8 @@ void BfMethodMatcher::TryDevirtualizeCall(BfTypedValue target, BfTypedValue* ori
auto underlyingType = checkType->GetUnderlyingType();
if ((underlyingType != NULL) && (underlyingType->IsWrappableType()))
checkTypeInst = mModule->GetWrappedStructType(underlyingType);
if (checkTypeInst == checkType)
break;
}
}