[all-commits] [llvm/llvm-project] 5ba194: [MC, COFF] .safeseh: avoid changeSection (#132624)

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 29 16:38:50 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ba194972878531b527f7370b509829a8e251949
      https://github.com/llvm/llvm-project/commit/5ba194972878531b527f7370b509829a8e251949
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-29 (Sat, 29 Mar 2025)

  Changed paths:
    M llvm/lib/MC/MCWinCOFFStreamer.cpp
    M llvm/test/CodeGen/X86/win32-eh.ll

  Log Message:
  -----------
  [MC,COFF] .safeseh: avoid changeSection (#132624)

The directive temporarily switches to the .sxdata section to emit data,
and then calls `insert`, which makes `CurFrag` out of sync of the
current section. Call push/switch/pop instead.

Related to #132464

(cherry picked from commit ece72e2731350d9840c6446db9276b04d593cc23)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list