Commit 0443abc3 authored by Iain Ireland's avatar Iain Ireland
Browse files

Bug 1841082: Don't unlink empty IC chain r=jandem a=RyanVM

parent 7fb94106
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1021,7 +1021,9 @@ AbortReasonOr<bool> WarpScriptOracle::maybeInlineCall(
        // If the target script can't be warp-compiled, mark it as
        // uninlineable, clean up, and fall through to the non-inlined path.
        ICEntry* entry = icScript_->icEntryForStub(fallbackStub);
        if (entry->firstStub() == stub) {
          fallbackStub->unlinkStub(cx_->zone(), entry, /*prev=*/nullptr, stub);
        }
        targetScript->setUninlineable();
        info_->inlineScriptTree()->removeCallee(inlineScriptTree);
        if (isTrialInlined) {