File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ class ExternalFunctionDefinitionsElimination : FunctionLivenessComputation {
475
475
476
476
// Check witness methods.
477
477
for (SILWitnessTable &WT : Module->getWitnessTableList ()) {
478
- bool tableIsAlive = isVisibleExternally (WT.getConformance ()->getProtocol ());
478
+ isVisibleExternally (WT.getConformance ()->getProtocol ());
479
479
for (const SILWitnessTable::Entry &entry : WT.getEntries ()) {
480
480
if (entry.getKind () != SILWitnessTable::Method)
481
481
continue ;
Original file line number Diff line number Diff line change @@ -1573,7 +1573,7 @@ static void checkTypeAccessibility(
1573
1573
DowngradeToWarning)> diagnose) {
1574
1574
const DeclContext *DC = context->getDeclContext ();
1575
1575
bool isParam = false ;
1576
- if (auto *param = dyn_cast <ParamDecl>(context)) {
1576
+ if (isa <ParamDecl>(context)) {
1577
1577
isParam = true ;
1578
1578
context = dyn_cast<AbstractFunctionDecl>(DC);
1579
1579
if (!context)
You can’t perform that action at this time.
0 commit comments