diff --git a/llvm/lib/MC/MCWin64EH.cpp b/llvm/lib/MC/MCWin64EH.cpp --- a/llvm/lib/MC/MCWin64EH.cpp +++ b/llvm/lib/MC/MCWin64EH.cpp @@ -351,7 +351,7 @@ // Unwind opcode encodings and restrictions are documented at // https://docs.microsoft.com/en-us/cpp/build/arm64-exception-handling -static void ARM64EmitUnwindCode(MCStreamer &streamer, const MCSymbol *begin, +static void ARM64EmitUnwindCode(MCStreamer &streamer, const WinEH::Instruction &inst) { uint8_t b, reg; switch (static_cast(inst.Operation)) { @@ -1080,14 +1080,14 @@ for (uint8_t c = 0; c < numInst; ++c) { WinEH::Instruction inst = info->Instructions.back(); info->Instructions.pop_back(); - ARM64EmitUnwindCode(streamer, info->Begin, inst); + ARM64EmitUnwindCode(streamer, inst); } // Emit epilog unwind instructions for (auto &I : info->EpilogMap) { auto &EpilogInstrs = I.second; for (const WinEH::Instruction &inst : EpilogInstrs) - ARM64EmitUnwindCode(streamer, info->Begin, inst); + ARM64EmitUnwindCode(streamer, inst); } int32_t BytesMod = CodeWords * 4 - TotalCodeBytes;