Skip to content

Commit b85f75f

Browse files
committed
Delete some unused variables
1 parent 11f0ff6 commit b85f75f

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

lib/SILOptimizer/LoopTransforms/LoopUnroll.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ static bool tryToUnrollLoop(SILLoop *Loop) {
392392
auto *Preheader = Loop->getLoopPreheader();
393393
if (!Preheader)
394394
return false;
395-
SILModule &M = Preheader->getParent()->getModule();
396395

397396
auto *Latch = Loop->getLoopLatch();
398397
if (!Latch)

lib/SILOptimizer/Mandatory/ConsumeOperatorCopyableValuesChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ bool ConsumeOperatorCopyableValuesChecker::check() {
436436
<< "Found at least one value to check, performing checking.\n");
437437
auto valuesToProcess =
438438
llvm::ArrayRef(valuesToCheck.begin(), valuesToCheck.end());
439-
auto &mod = fn->getModule();
440439

441440
// If we do not emit any diagnostics, we need to put in a break after each dbg
442441
// info carrying inst for a lexical value that we find a move on. This ensures

lib/SILOptimizer/Mandatory/DiagnoseUnreachable.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,6 @@ static void setOutsideBlockUsesToUndef(SILInstruction *I) {
658658
return;
659659

660660
SILBasicBlock *BB = I->getParent();
661-
auto *F = BB->getParent();
662661

663662
// Replace all uses outside of I's basic block by undef.
664663
llvm::SmallVector<Operand *, 16> Uses;

0 commit comments

Comments
 (0)