Skip to content

Commit 283f15e

Browse files
committed
Remove dead code in LoadBorrowImmutabilityChecker
1 parent 0199ff2 commit 283f15e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/SIL/Verifier/LoadBorrowImmutabilityChecker.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,6 @@ bool LoadBorrowImmutabilityAnalysis::isImmutableInScope(
324324
accessPath.getStorage().print(llvm::errs());
325325
return false;
326326
}
327-
auto ownershipRoot = accessPath.getStorage().isReference()
328-
? findOwnershipReferenceRoot(accessPathWithBase.base)
329-
: SILValue();
330327

331328
BorrowedValue borrowedValue(lbi);
332329
MultiDefPrunedLiveness borrowLiveness(lbi->getFunction());

0 commit comments

Comments
 (0)