You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix calling convention mismatch on Builtin.getCurrentAsyncTask (swiftlang#37008)
* Add explicit calling convention on builtin GetCurrentTask
This builtin function emits a call of swift_task_getCurrent, and user
code can declare the same name function with slightly different
signature at LLVM level (data size should be same) using @_silgen_name.
In that case, IRGen insert cast inst to cast the function to the
expected signature. But this cast inst drops calling convention info, so
call inst was emitted without swiftcc.
This patch changed to emit a call of swift_task_getCurrent with the
explicit calling convention.
* Add test case to ensure builtin function cc when conflict
0 commit comments