ArraySemantic: Add isMayRelease method

Returns whether this array semantic call has a neutral effect on reference
counts.

Swift SVN r25925
This commit is contained in:
Arnold Schwaighofer
2015-03-10 15:20:21 +00:00
parent aa24e126e4
commit fab9212e45
2 changed files with 18 additions and 0 deletions

View File

@@ -100,6 +100,12 @@ public:
/// Is this an semantics call.
operator bool() { return SemanticsCall != nullptr; }
/// Return whether this semantic call may release an object such that this is
/// observable from the caller. A balanced retain release is not observable
/// from the caller. A release for an @owned parameter is observable from the
/// caller.
bool isMayRelease();
protected:
/// Validate the signature of this call.
bool isValidSignature();