From 29fbafb91f25401a0f69f734592d9ff80404139b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 14 May 2020 14:55:56 -0700 Subject: [PATCH] Fixed module mutability issue --- IDEHelper/Compiler/BfCompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IDEHelper/Compiler/BfCompiler.cpp b/IDEHelper/Compiler/BfCompiler.cpp index 7c392544..a061c753 100644 --- a/IDEHelper/Compiler/BfCompiler.cpp +++ b/IDEHelper/Compiler/BfCompiler.cpp @@ -4971,6 +4971,8 @@ void BfCompiler::PopulateReified() if ((implMethod != NULL) && ((!implMethod->mMethodInstanceGroup->IsImplemented()) || (!implMethod->mIsReified))) { didWork = true; + if (!typeInst->mModule->mIsModuleMutable) + typeInst->mModule->StartExtension(); typeInst->mModule->GetMethodInstance(implMethod); } }