From 3611846b7f2eda2fde1047fb81aa362dc61e793b Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 23 Dec 2020 08:59:22 -0800 Subject: [PATCH] Const-eval release fix --- IDEHelper/Compiler/BfResolvedTypeUtils.cpp | 2 ++ IDEHelper/Tests/src/ConstEval.bf | 1 + 2 files changed, 3 insertions(+) diff --git a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp index 6cddf002..425720ff 100644 --- a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp +++ b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp @@ -536,7 +536,9 @@ BfMethodInfoEx::~BfMethodInfoEx() BfMethodInstance::~BfMethodInstance() { if (mMethodInstanceGroup != NULL) + { BfLogSys(GetOwner()->mModule->mSystem, "BfMethodInstance::~BfMethodInstance %p Local:%d InCEMachine:%d\n", this, mMethodDef->mIsLocalMethod, mInCEMachine); + } else { BF_ASSERT(!mMethodDef->mIsLocalMethod); diff --git a/IDEHelper/Tests/src/ConstEval.bf b/IDEHelper/Tests/src/ConstEval.bf index aee866e3..f6d250b5 100644 --- a/IDEHelper/Tests/src/ConstEval.bf +++ b/IDEHelper/Tests/src/ConstEval.bf @@ -23,6 +23,7 @@ namespace Tests const String cStrA = "Abc"; const String cStrB = GetStringA(cStrA, 12, 23); + // ConstEval attribute means this method will always be const-evaluated [ConstEval] static String GetStringA(String str, int a, int b) {