Skip to content

Commit eb96da5

Browse files
committed
[+0-all-args] Update tryDynamicCastNSErrorToValue for +0 all arguments.
1 parent 8798084 commit eb96da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/ErrorObject.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ bool BridgeFn(NSError *, OpaqueValue*, const Metadata *,
521521

522522
// If so, attempt the bridge.
523523
NSError *srcInstance = *reinterpret_cast<NSError * const*>(src);
524-
objc_retain(srcInstance);
524+
SWIFT_CC_PLUSONE_GUARD(objc_retain(srcInstance));
525525
if (bridgeNSErrorToError(srcInstance, dest, destType, witness)) {
526526
if (flags & DynamicCastFlags::TakeOnSuccess)
527527
objc_release(srcInstance);

0 commit comments

Comments
 (0)