Skip to content

Commit 6567438

Browse files
Squash release build warnings (#18986)
1 parent 6a5619e commit 6567438

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
@@ -7690,6 +7690,7 @@ static void finishInheritedConformances(
76907690
inherited);
76917691
assert(inheritedConformance && inheritedConformance->isConcrete() &&
76927692
"inherited conformance not found");
7693+
(void)inheritedConformance;
76937694
}
76947695
}
76957696

lib/SILGen/SILGenPoly.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,8 +2597,9 @@ ResultPlanner::planScalarFromIndirectResult(AbstractionPattern innerOrigType,
25972597
void ResultPlanner::executeInnerTuple(
25982598
SILValue innerElement, SmallVector<SILValue, 4> &innerDirectResults) {
25992599
// NOTE: We know that our value is at +1 here.
2600-
auto innerTupleType = innerElement->getType().getAs<TupleType>();
2601-
assert(innerTupleType && "Only supports tuple inner types");
2600+
assert(innerElement->getType().getAs<TupleType>() &&
2601+
"Only supports tuple inner types");
2602+
26022603
SGF.B.emitDestructureValueOperation(
26032604
Loc, innerElement, [&](unsigned index, SILValue elt) {
26042605
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)