From 687addf7a5c2bee4e7c59fd8137f7de33f918c90 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 16 Oct 2020 17:54:19 -0700 Subject: [PATCH] Fixed false method reification during conversion operator checking --- IDEHelper/Compiler/BfModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index ad35edcf..bbc08a59 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -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())