From 68bc8976b88c1bfd5aba343ed8a224b0d3e63360 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 14 Mar 2023 07:35:00 -0700 Subject: [PATCH] Comptime crash fixed for failed func call (ie: GetExecutableFilePath) --- IDEHelper/Compiler/CeMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IDEHelper/Compiler/CeMachine.cpp b/IDEHelper/Compiler/CeMachine.cpp index f74acb25..24d2a214 100644 --- a/IDEHelper/Compiler/CeMachine.cpp +++ b/IDEHelper/Compiler/CeMachine.cpp @@ -1024,7 +1024,7 @@ int CeBuilder::GetCallTableIdx(BeFunction* beFunction, CeOperand* outOperand) *callIdxPtr = (int)mCeFunction->mCallTable.size(); mCeFunction->mCallTable.Add(callEntry); - if (ceFunctionInfo != NULL) + if ((ceFunctionInfo != NULL) && (mCeFunction->mCeFunctionInfo != NULL)) { auto callerType = mCeFunction->mCeFunctionInfo->GetOwner(); auto calleeType = ceFunctionInfo->GetOwner();