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
gparker42mannequin opened this issue
Oct 27, 2017
· 6 comments
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generationruntimeThe Swift Runtime
In TOT swift, the compiler and runtime disagree about the calling convention of swift_unexpectedError() and other runtime functions.
The problem is that the description in RuntimeFunctions.def is incompatible with the definition.
RuntimeFunctions.def: swift_unexpectedError() is DefaultCC
ErrorType.swift: swift_unexpectedError() is a Swift function annotated with @_silgen_name and therefore uses the Swift calling convention.
This also applies to swift_willThrow and swift_errorInMain().
The text was updated successfully, but these errors were encountered:
the swift calling convention and the c calling convention happen to be ABI compatible.
The callee-saved register set of llvm::cc and llvm::swiftcc happens to be the same. And argument passing only differs if we are dealing with swiftself/swifterror annotations (they are passed in a CSR)
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generationruntimeThe Swift Runtime
Additional Detail from JIRA
md5: cc56a0756fcb065286f647b1fc310da0
Issue Description:
In TOT swift, the compiler and runtime disagree about the calling convention of
swift_unexpectedError()
and other runtime functions.The problem is that the description in RuntimeFunctions.def is incompatible with the definition.
RuntimeFunctions.def:
swift_unexpectedError()
is DefaultCCErrorType.swift:
swift_unexpectedError()
is a Swift function annotated with @_silgen_name and therefore uses the Swift calling convention.This also applies to
swift_willThrow
andswift_errorInMain()
.The text was updated successfully, but these errors were encountered: