We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5426d50 commit 1678354Copy full SHA for 1678354
lib/SIL/Utils/OwnershipUtils.cpp
@@ -807,7 +807,7 @@ bool swift::findTransitiveUsesForAddress(
807
808
// We were able to recognize all of the uses of the address, so return false
809
// that we did not find any errors.
810
- return foundError;
+ return !foundError;
811
}
812
813
//===----------------------------------------------------------------------===//
lib/SIL/Verifier/SILOwnershipVerifier.cpp
@@ -376,7 +376,7 @@ bool SILValueOwnershipChecker::gatherUsers(
376
<< "Address User: " << *op->getUser();
377
});
378
};
379
- foundError |= interiorPointerOperand.findTransitiveUses(
+ foundError |= !interiorPointerOperand.findTransitiveUses(
380
nonLifetimeEndingUsers, &onError);
381
382
0 commit comments