Skip to content

Commit 4400140

Browse files
committed
SILOptimizer: remove some unused variables
to fix "unused variable" warnings rdar://84035249
1 parent b90732c commit 4400140

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

lib/SILOptimizer/Utils/CanonicalOSSALifetime.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ llvm::Statistic swift::NumCopiesGenerated = {
8080
STATISTIC(NumDestroysEliminated,
8181
"number of destroy_value instructions removed");
8282
STATISTIC(NumDestroysGenerated, "number of destroy_value instructions created");
83-
STATISTIC(NumUnknownUsers, "number of functions with unknown users");
8483

8584
//===----------------------------------------------------------------------===//
8685
// MARK: General utilities

lib/SILOptimizer/Utils/CanonicalizeBorrowScope.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535

3636
using namespace swift;
3737

38-
STATISTIC(NumOuterCopies, "number of copy_value instructions added for a "
39-
"borrow scope");
40-
4138
//===----------------------------------------------------------------------===//
4239
// MARK: Local utilities
4340
//===----------------------------------------------------------------------===//

lib/SILOptimizer/Utils/CanonicalizeInstruction.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@
3333

3434
using namespace swift;
3535

36-
// STATISTIC uses the default DEBUG_TYPE.
37-
#define DEBUG_TYPE CanonicalizeInstruction::defaultDebugType
38-
STATISTIC(NumSimplified, "Number of instructions simplified");
39-
4036
// Tracing within the implementation can also be activiated by the pass.
41-
#undef DEBUG_TYPE
4237
#define DEBUG_TYPE pass.debugType
4338

4439
// Vtable anchor.

lib/SILOptimizer/Utils/DistributedActor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,13 @@ void emitActorTransportWitnessCall(
6868
ProtocolConformanceRef transportConfRef;
6969

7070
// If the transport is an existential open it.
71-
bool openedExistential = false;
7271
if (transportASTType->isAnyExistentialType()) {
7372
OpenedArchetypeType *opened;
7473
transportASTType =
7574
transportASTType->openAnyExistentialType(opened)->getCanonicalType();
7675
transport = B.createOpenExistentialAddr(
7776
loc, transport, F.getLoweredType(transportASTType),
7877
OpenedExistentialAccess::Immutable);
79-
openedExistential = true;
8078
}
8179

8280
if (transportASTType->isTypeParameter() ||

0 commit comments

Comments
 (0)