mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed ToString of tuples with sized array members
This commit is contained in:
parent
34b0dd44a7
commit
ca1ac7fb4c
3 changed files with 20 additions and 3 deletions
|
@ -3081,6 +3081,12 @@ void BfMethodMatcher::TryDevirtualizeCall(BfTypedValue target, BfTypedValue* ori
|
|||
{
|
||||
auto structType = target.mType->ToTypeInstance();
|
||||
|
||||
if (structType == NULL)
|
||||
{
|
||||
mModule->InternalError("Invalid type in TryDevirtualizeCall");
|
||||
return;
|
||||
}
|
||||
|
||||
auto virtualMethodInstance = mModule->GetMethodInstance(mBestMethodTypeInstance, mBestMethodDef, BfTypeVector());
|
||||
BF_ASSERT(virtualMethodInstance.mMethodInstance->mVirtualTableIdx != -1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue