HomePhabricator

[ObjCARC] Add funclet token to ARC marker

Authored by smeenai on Mar 20 2018, 1:45 PM.

Description

[ObjCARC] Add funclet token to ARC marker

The inline assembly generated for the ARC autorelease elision marker
must have a funclet token if it's emitted inside a funclet, otherwise
the inline assembly (and all subsequent code in the funclet) will be
marked unreachable by WinEHPrepare.

Note that this only applies for the non-O0 case, since at O0, clang
emits the autorelease elision marker itself rather than deferring to the
backend. The fix for clang is handled in a separate change.

Differential Revision: https://reviews.llvm.org/D44641

llvm-svn: 328042

Details

Committed
smeenaiMar 20 2018, 1:45 PM
Differential Revision
D44641: [ObjCARC] Add funclet token to ARC marker
Parents
rG8ef820a6ede4: [format] Initialize regex lazily
Branches
Unknown
Tags
Unknown