Skip to content

Commit 9e37826

Browse files
committed
PackSpecialization: Fix minor formatting issues
1 parent 48ca34e commit 9e37826

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/PackSpecialization.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private struct CallSiteSpecializer {
243243
.indirectInoutAliasable:
244244
newParameters.append(indirectParameterAddress)
245245
case .packOut, .packInout, .packOwned, .packGuaranteed, .indirectOut:
246-
assert(false, "Unsupported exploded parameter pack element convention.")
246+
preconditionFailure("Unsupported exploded parameter pack element convention.")
247247
}
248248
}
249249

@@ -515,6 +515,7 @@ private struct PackExplodedFunction {
515515

516516
typealias ParameterMap = [MappedParameter]
517517
public let parameterMap: ParameterMap
518+
518519
/// Maps indices of pack arguments of the original function to its
519520
/// `approximateFormalPackType` (a Canonical AST PackType).
520521
/// Saves recomputing these types every time they are needed,

0 commit comments

Comments
 (0)