[clang] [llvm] [ARM] Add support for Windows SEH (PR #184953)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 04:50:14 PDT 2026


mstorsjo wrote:

> If the SEH implementation assumes Thumb‑only semantics, it should explicitly document that assumption and assert on ARM‑mode cases, because Windows itself does not enforce Thumb‑only.
> 
> That avoids silent mis‑unwinds later if/when LLVM grows ARM‑mode support or encounters ARM‑mode objects from external libraries.

That sounds reasonable to do.

> MSVC‑built binaries can contain ARM‑mode functions. That’s not speculation — it’s observable behaviour in real MSVC output, especially around:
> 
> compiler‑generated helper functions
> 
> certain runtime thunks
> 
> older MSVC toolchains targeting Windows RT
> 
> mixed‑mode object files linked into modern binaries
> 
> I can provide concrete examples in a separate issue if needed

Thanks, I'd be curious to look at that if you do.

https://github.com/llvm/llvm-project/pull/184953


More information about the llvm-commits mailing list