Commit Graph

5 Commits

Author SHA1 Message Date
Allan Shortlidge
da2d250105 Tests: Loosen CHECK: lines matching _diagnoseUnavailableCodeReached().
Depending on deployment target and platform, the function called to diagnose
reaching unavailable code could be `_diagnoseUnavailableCodeReached()` itself,
the back-deployment thunk, or the `@_alwaysEmitIntoClient` variant of the
function.

Resolves rdar://121344690
2024-01-29 09:09:26 -08:00
Allan Shortlidge
edcec43098 Revert "Frontend: Temporarily disable stubbing unavailable decls."
This reverts commit ad604f2803.
2024-01-03 11:01:00 -08:00
Allan Shortlidge
ad604f2803 Frontend: Temporarily disable stubbing unavailable decls.
This feature should be disabled until rdar://119046537 is solved.
2023-12-12 15:46:57 -08:00
Allan Shortlidge
0c910e54c6 Frontend: Enable -unavailable-decl-optimization=stub by default.
By default the compiler will now replace the bodies of unavailable functions
with stubs that call `_diagnoseUnavailableCodeReached()` instead.

Resolves rdar://116019744
2023-10-18 18:35:14 -07:00
Allan Shortlidge
d1416ddd56 SILGen: Stub unavailable functions.
When `-unavailable-decl-optimization=stub` is specified, insert a call to
`_diagnoseUnavailableCodeReached()` at the beginning of the function to cause
it to trap if executed at run time.

Part of rdar://107388493
2023-05-03 15:19:31 -07:00