Rename PrunedLiveness.clear() to invalidate()

Because SILBitfield cannot be cleared.
This commit is contained in:
Andrew Trick
2023-03-21 14:12:57 -07:00
parent 15796e3ff9
commit ae64ff5cb0
9 changed files with 25 additions and 23 deletions

View File

@@ -1292,7 +1292,7 @@ struct GatherUsesVisitor : public AccessUseVisitor {
/// Returns true if we emitted an error.
bool checkForExclusivityHazards(LoadInst *li) {
SWIFT_DEFER { liveness.clear(); };
SWIFT_DEFER { liveness.invalidate(); };
LLVM_DEBUG(llvm::dbgs() << "Checking for exclusivity hazards for: " << *li);