1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Don't crash on failed GetOperand on invocation args

This commit is contained in:
Brian Fiete 2022-01-22 06:08:42 -05:00
parent 987413a691
commit bc39fe6204

View file

@ -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);