[SR-2394] Swift shouldn't import "returns twice" functions like setjmp #45001
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
good first issue
Good for newcomers
Additional Detail from JIRA
md5: f54f1e669749026cf48985777f591afe
Issue Description:
Clang has a notion of “returns twice” functions, used for things like fork/setjmp and other icky things. The compiler doesn’t reason about these function and the control flow that they entail, so DI and other properties are not correct.
When importing one of them, we should slap an ‘unavailable’ attribute on them, so swift programmers don’t use them.
The text was updated successfully, but these errors were encountered: