[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:
Michael Gottesman
2017-12-02 16:40:17 -08:00
parent f2783bb3a1
commit 5263e9e74e
14 changed files with 48 additions and 52 deletions

View File

@@ -662,7 +662,7 @@ void FunctionSignatureTransform::createFunctionSignatureOptimizedFunction() {
F->isSerialized(), F->getEntryCount(), F->isThunk(),
F->getClassSubclassScope(), F->getInlineStrategy(),
F->getEffectsKind(), nullptr, F->getDebugScope());
if (F->hasUnqualifiedOwnership()) {
if (!F->hasQualifiedOwnership()) {
NewF->setUnqualifiedOwnership();
}