1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Comptime crash fixed for failed func call (ie: GetExecutableFilePath)

This commit is contained in:
Brian Fiete 2023-03-14 07:35:00 -07:00
parent b6219ce80f
commit 68bc8976b8

View file

@ -1024,7 +1024,7 @@ int CeBuilder::GetCallTableIdx(BeFunction* beFunction, CeOperand* outOperand)
*callIdxPtr = (int)mCeFunction->mCallTable.size(); *callIdxPtr = (int)mCeFunction->mCallTable.size();
mCeFunction->mCallTable.Add(callEntry); mCeFunction->mCallTable.Add(callEntry);
if (ceFunctionInfo != NULL) if ((ceFunctionInfo != NULL) && (mCeFunction->mCeFunctionInfo != NULL))
{ {
auto callerType = mCeFunction->mCeFunctionInfo->GetOwner(); auto callerType = mCeFunction->mCeFunctionInfo->GetOwner();
auto calleeType = ceFunctionInfo->GetOwner(); auto calleeType = ceFunctionInfo->GetOwner();