mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #80297 from rjmccall/zero-objc-async-result-on-error-path
Pass a zero normal result to ObjC async completion handlers on the error path
This commit is contained in:
@@ -2422,6 +2422,16 @@ public:
|
||||
valueType, paramType));
|
||||
}
|
||||
|
||||
/// Create a zero-initialized value of the given (loadable) type.
|
||||
///
|
||||
/// This is currently only expected to be used in narrow situations
|
||||
/// involving bridging and only makes a best effort attempt.
|
||||
SILValue createZeroInitValue(SILLocation loc, SILType loweredTy);
|
||||
|
||||
/// Zero-initialize an object in memory of the given type (which may
|
||||
/// or may not be loadable).
|
||||
BuiltinInst *createZeroInitAddr(SILLocation loc, SILValue addr);
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Unchecked cast helpers
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user