mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #18920 from mikeash/willthrow-error-register
[Runtime][ABI] Have swift_willThrow take the error value in the return register.
This commit is contained in:
@@ -387,9 +387,6 @@ BUILTIN_SIL_OPERATION(IdentityKeyPath, "identityKeyPath", Special)
|
||||
BUILTIN(Id, Name, Attrs)
|
||||
#endif
|
||||
|
||||
/// willThrow: Error -> ()
|
||||
BUILTIN_RUNTIME_CALL(WillThrow, "willThrow", "n")
|
||||
|
||||
/// unexpectedError: Error -> ()
|
||||
BUILTIN_RUNTIME_CALL(UnexpectedError, "unexpectedError", "")
|
||||
|
||||
@@ -539,6 +536,9 @@ BUILTIN_MISC_OPERATION(GetObjCTypeEncoding, "getObjCTypeEncoding", "n", Special)
|
||||
// Swift3ImplicitObjCEntrypoint has type () -> ()
|
||||
BUILTIN_MISC_OPERATION(Swift3ImplicitObjCEntrypoint, "swift3ImplicitObjCEntrypoint", "", Special)
|
||||
|
||||
/// willThrow: Error -> ()
|
||||
BUILTIN_MISC_OPERATION(WillThrow, "willThrow", "", Special)
|
||||
|
||||
#undef BUILTIN_MISC_OPERATION
|
||||
|
||||
/// Builtins for instrumentation added by sanitizers during SILGen.
|
||||
|
||||
Reference in New Issue
Block a user