Skip to content

Commit 96516f8

Browse files
authored
Merge pull request #9088 from eeckstein/fix-typo
2 parents 8a18a7d + 62be182 commit 96516f8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

benchmark/single-source/SortLargeExistentials.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ protocol LetterKind {
2323
struct Letter : LetterKind {
2424
let value: String
2525

26-
var a: Int = 27
27-
var b: Int = 27
28-
var c: Int = 27
29-
var d: Int = 27
26+
// Make this struct a large struct which does not fit into the 3-word
27+
// existential inline buffer. Also provide an answer to ...
28+
var a: Int = 42
29+
var b: Int = 42
30+
var c: Int = 42
31+
var d: Int = 42
3032

3133
init(_ value: String) {
3234
self.value = value

lib/SILOptimizer/Analysis/ArraySemantic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ bool swift::ArraySemanticsCall::replaceByAppendingValues(
718718
auto FnTy = FnRef->getType();
719719

720720
if (Vals.size() > 1) {
721-
// Create a call to reserveCapacityForAppend() to reserve apce for multiple
721+
// Create a call to reserveCapacityForAppend() to reserve space for multiple
722722
// elements.
723723
FunctionRefInst *ReserveFnRef = Builder.createFunctionRef(Loc, ReserveFn);
724724
SILFunctionType *ReserveFnTy =

0 commit comments

Comments
 (0)