From 1fc64a1690e08c31df931a6c062e7aee1b1cffce Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 12 Jul 2020 06:27:23 -0700 Subject: [PATCH] Additional debug information during crash --- IDEHelper/Backend/BeMCContext.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/IDEHelper/Backend/BeMCContext.cpp b/IDEHelper/Backend/BeMCContext.cpp index 1a3e4fac..389645e2 100644 --- a/IDEHelper/Backend/BeMCContext.cpp +++ b/IDEHelper/Backend/BeMCContext.cpp @@ -2329,7 +2329,13 @@ BeMCOperand BeMCContext::GetOperand(BeValue* value, bool allowMetaResult, bool a //auto itr = mValueToOperand.find(value); if (!allowFail) { - BF_ASSERT(operandPtr != NULL); + if (operandPtr == NULL) + { + BeDumpContext dumpCtx; + String str; + dumpCtx.ToString(str, value); + Fail(StrFormat("Unable to find bevalue for operand: %s", str.c_str())); + } } if (operandPtr == NULL) {