[PATCH] D58752: [AArch64] [Windows] Don't skip constructing UnwindHelp.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 17:42:02 PST 2019


efriedma created this revision.
efriedma added reviewers: ssijaric, rnk.
Herald added subscribers: kristof.beyls, javed.absar.
Herald added a project: LLVM.

In certain cases, the first non-frame-setup instruction in a function is a branch.  For example, it could be a cbz on an argument.  Make sure we correctly allocate the UnwindHelp, and find an appropriate register to use to initialize it.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40184


Repository:
  rL LLVM

https://reviews.llvm.org/D58752

Files:
  lib/Target/AArch64/AArch64FrameLowering.cpp
  test/CodeGen/AArch64/seh-finally.ll
  test/CodeGen/AArch64/wineh-try-catch-cbz.ll
  test/CodeGen/AArch64/wineh-try-catch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58752.188654.patch
Type: text/x-patch
Size: 4362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190228/67e42dcb/attachment.bin>


More information about the llvm-commits mailing list