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

Fixed false method reification during conversion operator checking

This commit is contained in:
Brian Fiete 2020-10-16 17:54:19 -07:00
parent 852748ae1f
commit 687addf7a5

View file

@ -11879,7 +11879,7 @@ BfModuleMethodInstance BfModule::ReferenceExternalMethodInstance(BfMethodInstanc
if (!isGenFunction)
AddMethodReference(methodInstance, flags);
if (mBfIRBuilder->mIgnoreWrites)
if ((mBfIRBuilder->mIgnoreWrites) || ((flags & BfGetMethodInstanceFlag_Unreified) != 0))
return BfModuleMethodInstance(methodInstance, mBfIRBuilder->GetFakeVal());
if (mCompiler->IsSkippingExtraResolveChecks())