From 7cd16974b1e90900fc5997b5573ae20f55f9f5be Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 22 Oct 2021 11:45:59 -0700 Subject: [PATCH] MakeAddressable const actualization fix --- IDEHelper/Compiler/BfModule.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 78e52180..fdf2c394 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -7144,7 +7144,7 @@ BfIRFunction BfModule::GetIntrinsic(BfMethodInstance* methodInstance, bool repor auto constant = methodOwner->mConstHolder->GetConstant(customAttribute.mCtorArgs[0]); String error; - if ((constant != NULL) && (constant->mTypeCode = BfTypeCode_StringId)) + if ((constant != NULL) && (constant->mTypeCode == BfTypeCode_StringId)) { int stringId = constant->mInt32; auto entry = mContext->mStringObjectIdMap[stringId]; @@ -12042,7 +12042,7 @@ BfTypedValue BfModule::MakeAddressable(BfTypedValue typedVal, bool forceMutable) wasReadOnly = true; // Any non-addr is implicitly read-only //static int gCallIdx = 0; - + FixValueActualization(typedVal); if (typedVal.IsAddr()) return typedVal; BfType* type = typedVal.mType;