Skip to content

Commit 05d6b95

Browse files
Fix recently introduced typos.
1 parent a8dd1de commit 05d6b95

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/SIL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ A value ``%1`` is said to be *value-dependent* on a value ``%0`` if:
15411541
- ``%1`` is the result of ``mark_dependence`` and ``%0`` is either of
15421542
the operands.
15431543

1544-
- ``%1`` is the value address of an box allocation instruction of which
1544+
- ``%1`` is the value address of a box allocation instruction of which
15451545
``%0`` is the box reference.
15461546

15471547
- ``%1`` is the result of a ``struct``, ``tuple``, or ``enum``

include/swift/AST/DiagnosticsDriver.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ERROR(error_unknown_target,driver,none,
7777
"unknown target '%0'", (StringRef))
7878

7979
ERROR(error_framework_bridging_header,driver,none,
80-
"using bridging headers with framework targets is unsupported", ())
80+
"using bridging headers with framework targets is unsupported", ())
8181

8282
ERROR(error_i_mode,driver,none,
8383
"the flag '-i' is no longer required and has been removed; "

include/swift/Basic/PointerIntEnum.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct PointerIntEnumIndexKindValue
6868
/// PointerIntEnum. On 64 bit we have many more bits than that.
6969
///
7070
/// By using this representation, we can make PointerIntEnum a true value type
71-
/// that is trivially constructable and destructable without needing to malloc
71+
/// that is trivially constructible and destructible without needing to malloc
7272
/// memory.
7373
///
7474
/// In order for all of this to work, the user of this needs to construct an
@@ -125,7 +125,7 @@ class PointerIntEnum {
125125
static constexpr unsigned NumIndexBits =
126126
sizeof(uintptr_t) * CHAR_BIT - IndexShiftOffset;
127127

128-
/// The maximum index that can be stored for a index PointerIntEnum caes.
128+
/// The maximum index that can be stored for an index PointerIntEnum case.
129129
static constexpr uintptr_t MaxIndex = (uintptr_t(1) << NumIndexBits) - 2;
130130

131131
/// The bit representation of an Invalid PointerIntEnum's storage.

lib/IRGen/LocalTypeData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ llvm::Value *LocalTypeDataCache::tryGet(IRGenFunction &IGF, Key key) {
127127

128128
// Make a new concrete entry at the active definition point.
129129

130-
// Register witih the active ConditionalDominanceScope if necessary.
130+
// Register with the active ConditionalDominanceScope if necessary.
131131
bool isConditional = IGF.isConditionalDominancePoint();
132132
if (isConditional) {
133133
IGF.registerConditionalLocalTypeDataKey(key);

0 commit comments

Comments
 (0)