We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cd467 commit 72fd7bcCopy full SHA for 72fd7bc
lib/Backend/Inline.cpp
@@ -1028,6 +1028,10 @@ IR::Instr * Inline::TryGetCallbackDefInstrForCallInstr(IR::Instr * callInstr)
1028
IR::Instr * Inline::TryGetCallbackDefInstrForCallApplyTarget(IR::Instr * callApplyLdInstr)
1029
{
1030
// Try to find a function argument that could be inlined.
1031
+ if (!callApplyLdInstr->GetSrc1()->IsSymOpnd() || !callApplyLdInstr->GetSrc1()->AsSymOpnd()->IsPropertySymOpnd())
1032
+ {
1033
+ return nullptr;
1034
+ }
1035
StackSym * callbackSym = callApplyLdInstr->GetSrc1()->AsPropertySymOpnd()->GetObjectSym();
1036
Assert(callbackSym != nullptr);
1037
return TryGetCallbackDefInstr(callbackSym);
0 commit comments