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

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 09:34:32 PST 2026


================
@@ -3838,6 +3838,23 @@ ARMTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG,
   SDLoc dl(Op);
   switch (IntNo) {
   default: return SDValue();    // Don't custom lower most intrinsics.
+  case Intrinsic::localaddress: {
+    const MachineFunction &MF = DAG.getMachineFunction();
+    const TargetRegisterInfo *RegInfo = Subtarget->getRegisterInfo();
+    unsigned Reg = RegInfo->getFrameRegister(MF);
----------------
efriedma-quic wrote:

getFrameRegister() here looks suspicious, comparing to other architectures.

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


More information about the cfe-commits mailing list