diff --git a/src/coreclr/jit/regallocwasm.cpp b/src/coreclr/jit/regallocwasm.cpp index 43c60ed1d13ac6..9f62e7057f5407 100644 --- a/src/coreclr/jit/regallocwasm.cpp +++ b/src/coreclr/jit/regallocwasm.cpp @@ -578,16 +578,12 @@ void WasmRegAlloc::CollectReferencesForCall(GenTreeCall* callNode) // For a fast tail call, wrap the SP arg with ADD(SP, FRAME_SIZE) so codegen // undoes the prolog's SP adjustment and the callee sees the incoming SP. - // The arg has been rewritten to GT_PHYSREG above (args are visited before the call). if (callNode->IsFastTailCall()) { CallArg* const spArg = callNode->gtArgs.FindWellKnownArg(WellKnownArg::WasmShadowStackPointer); if (spArg != nullptr) { GenTree* const physReg = spArg->GetNode(); - assert(physReg != nullptr); - assert(physReg->OperIs(GT_PHYSREG)); - assert(physReg->AsPhysReg()->gtSrcReg == m_perFuncletData[m_currentFunclet]->m_spReg); // Fast tail calls from funclets are not supported. assert(m_currentFunclet == ROOT_FUNC_IDX);