This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] [Windows] Don't skip constructing UnwindHelp.
ClosedPublic

Authored by efriedma on Feb 27 2019, 5:41 PM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Feb 27 2019, 5:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2019, 5:41 PM
rnk accepted this revision.Feb 28 2019, 9:34 AM

lgtm

This revision is now accepted and ready to land.Feb 28 2019, 9:34 AM
This revision was automatically updated to reflect the committed changes.