From bc39fe62048653178b2ef61b9a6d8b0ce3fcf63a Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 22 Jan 2022 06:08:42 -0500 Subject: [PATCH] Don't crash on failed GetOperand on invocation args --- IDEHelper/Compiler/CeMachine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IDEHelper/Compiler/CeMachine.cpp b/IDEHelper/Compiler/CeMachine.cpp index 5dedd090..a7a58ae3 100644 --- a/IDEHelper/Compiler/CeMachine.cpp +++ b/IDEHelper/Compiler/CeMachine.cpp @@ -2684,6 +2684,8 @@ void CeBuilder::Build() { auto& arg = castedInst->mArgs[argIdx]; auto ceArg = GetOperand(arg.mValue); + if (!ceArg) + continue; if (argIdx == 0) thisOperand = ceArg; EmitSizedOp(CeOp_Push_8, ceArg, NULL, true);