[+0-all-args] Clean up remains of +1 convention from the runtime.

This commit is contained in:
Michael Gottesman
2018-07-06 23:07:43 -07:00
parent 238aa2d3a5
commit 5648ef219d
15 changed files with 19 additions and 83 deletions

View File

@@ -2701,7 +2701,7 @@ static bool _dynamicCastClassToValueViaObjCBridgeable(
(HeapObject *)srcObject, (OpaqueValue *)optDestBuffer,
targetType, targetType, targetBridgeWitness);
}
SWIFT_CC_PLUSZERO_GUARD(swift_unknownRelease(srcObject));
swift_unknownRelease(srcObject);
// If we succeeded, take from the optional buffer into the
// destination buffer.
@@ -3016,7 +3016,6 @@ _bridgeNonVerbatimFromObjectiveCConditional(
// Local function that releases the source and returns false.
auto fail = [&] () -> bool {
SWIFT_CC_PLUSONE_GUARD(swift_unknownRelease(sourceValue));
return false;
};