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

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Mar 25 21:17:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ece72e2731350d9840c6446db9276b04d593cc23
      https://github.com/llvm/llvm-project/commit/ece72e2731350d9840c6446db9276b04d593cc23
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-25 (Tue, 25 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



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