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:
John McCall
2025-03-26 12:42:38 -04:00
committed by GitHub
16 changed files with 147 additions and 55 deletions

View File

@@ -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
//===--------------------------------------------------------------------===//