[PATCH] D51524: [ARM64] [Windows] Handle funclets

David Majnemer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 24 20:04:54 PDT 2018


majnemer added inline comments.


================
Comment at: lib/Target/AArch64/AArch64FrameLowering.cpp:1675-1679
+// Patch in zero for now.  Haven't encountered any problems yet.
+unsigned AArch64FrameLowering::getWinEHParentFrameOffset(
+    const MachineFunction &MF) const {
+  return 0;
+}
----------------
majnemer wrote:
> This is used to populate `dispFrame` in `_s_HandlerType` IIRC. IIUC, you will have issues with certain catch handlers without this properly populated.
Ah, it could be that `dispFrame` is not needed for ARM64. In that case, WinException.cpp should not call `getWinEHParentFrameOffset` and the `ParentFrameOffset` should not be emitted as it will add padding between the HandlerType elements.


Repository:
  rL LLVM

https://reviews.llvm.org/D51524





More information about the llvm-commits mailing list