mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -106,6 +106,11 @@ swift::swift_getErrorValue(const SwiftError *errorObject,
|
||||
out->errorConformance = errorObject->errorConformance;
|
||||
}
|
||||
|
||||
void swift::swift_willThrow(SwiftError *object) { }
|
||||
/// Breakpoint hook for debuggers.
|
||||
SWIFT_CC(swift) void
|
||||
swift::swift_willThrow(SWIFT_CONTEXT void *unused,
|
||||
SWIFT_ERROR_RESULT SwiftError **error) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user