swift
eac9cfc2 - [Async CC] Auth'd AFP ptr of statically thin fn.

Commit
5 years ago
[Async CC] Auth'd AFP ptr of statically thin fn. In irgen::getAsyncFunctionAndSize, in the case where the passed-in function has a thin representation, the pointer that is passed in is not actually a pointer to a function but instead a pointer to an AsyncFunctionPointer struct. To obtain the function pointer and size, fields must be loaded from this struct. However, in order to load these fields, that pointer to the AsyncFunctionPointer struct must itself first be authenticated. Here, that authentication is performed. Subsequently, the function pointer is again signed.
Author
Committer
Parents
Loading