Skip to content

Commit 479dd23

Browse files
committed
Squash release build warnings
1 parent 724127b commit 479dd23

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7677,6 +7677,7 @@ static void finishInheritedConformances(
76777677
inherited);
76787678
assert(inheritedConformance && inheritedConformance->isConcrete() &&
76797679
"inherited conformance not found");
7680+
(void)inheritedConformance;
76807681
}
76817682
}
76827683

lib/SILGen/SILGenPoly.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,8 +2440,9 @@ ResultPlanner::planScalarFromIndirectResult(AbstractionPattern innerOrigType,
24402440
void ResultPlanner::executeInnerTuple(
24412441
SILValue innerElement, SmallVector<SILValue, 4> &innerDirectResults) {
24422442
// NOTE: We know that our value is at +1 here.
2443-
auto innerTupleType = innerElement->getType().getAs<TupleType>();
2444-
assert(innerTupleType && "Only supports tuple inner types");
2443+
assert(innerElement->getType().getAs<TupleType>() &&
2444+
"Only supports tuple inner types");
2445+
24452446
SGF.B.emitDestructureValueOperation(
24462447
Loc, innerElement, [&](unsigned index, SILValue elt) {
24472448
if (elt->getType().is<TupleType>())

lib/SILOptimizer/Transforms/SpeculativeDevirtualizer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@ static FullApplySite speculateMonomorphicTarget(FullApplySite AI,
218218
NumTargetsPredicted++;
219219

220220
// Devirtualize the apply instruction on the identical path.
221-
auto NewInst =
222-
devirtualizeClassMethod(IdenAI, DownCastedClassInstance, nullptr);
223-
assert(NewInst && "Expected to be able to devirtualize apply!");
221+
assert(devirtualizeClassMethod(IdenAI, DownCastedClassInstance, nullptr) &&
222+
"Expected to be able to devirtualize apply!");
224223
deleteDevirtualizedApply(IdenAI);
225224

226225
// Split critical edges resulting from VirtAI.

0 commit comments

Comments
 (0)