mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Eliminate redundant method SILFunction::hasUnqualifiedOwnership().
We can just !SILFunction::hasQualifiedOwnership(). Plus as Andy pointed out, even ignoring the functional aspects, having APIs with names this close can create confusion.
This commit is contained in:
@@ -318,10 +318,6 @@ public:
|
||||
/// Returns true if this function has qualified ownership instructions in it.
|
||||
bool hasQualifiedOwnership() const { return HasQualifiedOwnership; }
|
||||
|
||||
/// Returns true if this function has unqualified ownership instructions in
|
||||
/// it.
|
||||
bool hasUnqualifiedOwnership() const { return !HasQualifiedOwnership; }
|
||||
|
||||
/// Sets the HasQualifiedOwnership flag to false. This signals to SIL that no
|
||||
/// ownership instructions should be in this function any more.
|
||||
void setUnqualifiedOwnership() {
|
||||
|
||||
Reference in New Issue
Block a user