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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user