Skip to content

Commit 3d2997f

Browse files
Fix recently introduced typos.
1 parent f9c2cd1 commit 3d2997f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/swift/Basic/PointerIntEnum.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace swift {
8181
/// \tparam PtrTraits The pointer traits of PointerTy
8282
/// \tparam ScribbleMemory Instead of freeing any malloced memory, scribble the
8383
/// memory. This enables us to test that memory is properly being
84-
/// deallocated. Should only be set to true during unittesting.
84+
/// deallocated. Should only be set to true during unit testing.
8585
template <typename EnumTy, typename PointerTy, unsigned NumPointerKindBits,
8686
unsigned NumIndexKindBits,
8787
typename PtrTraits = llvm::PointerLikeTypeTraits<PointerTy>,
@@ -153,7 +153,7 @@ class PointerIntEnum {
153153
}
154154

155155
PointerIntEnum &operator=(const PointerIntEnum &P) {
156-
// If we already haev a raw kind, we need to free memory.
156+
// If we already have a raw kind, we need to free memory.
157157
if (getRawKind() == EnumTy::LargeIndex)
158158
freeMemory();
159159

@@ -197,7 +197,7 @@ class PointerIntEnum {
197197
/// Convenience method for getting the raw underlying kind.
198198
EnumTy getKind() const {
199199
// First grab the bits of projection excluding the top 3 bits. If these bits
200-
// take ona value <= 4095, then we have a small index.
200+
// take on a value <= 4095, then we have a small index.
201201
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
202202
return EnumTy(unsigned(Index >> IndexKindBitOffset));
203203
}
@@ -252,7 +252,7 @@ class PointerIntEnum {
252252
/// lower bits of the malloced large index.
253253
EnumTy getRawKind() const {
254254
// First grab the bits of projection excluding the top 3 bits. If these bits
255-
// take ona value <= 2047, then we have a small index.
255+
// take on a value <= 2047, then we have a small index.
256256
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
257257
return EnumTy(unsigned(Index >> IndexKindBitOffset));
258258
}

include/swift/SIL/Projection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class NewProjection {
202202
NumPointerKindBits, NumIndexKindBits>;
203203
/// A pointer sized type that is used to store the kind of projection that is
204204
/// being represented and also all of the necessary information to convert a
205-
/// base SILTyepe to a derived field SILType.
205+
/// base SILType to a derived field SILType.
206206
ValueTy Value;
207207

208208
public:
@@ -535,7 +535,7 @@ class NewProjectionPath {
535535
/// to an address derived type.
536536
bool isAddressProjectionPath() const;
537537

538-
/// Returns true if this is an projection path that takes an object base type
538+
/// Returns true if this is a projection path that takes an object base type
539539
/// to an object derived type.
540540
bool isObjectProjectionPath() const;
541541

@@ -547,7 +547,7 @@ class NewProjectionPath {
547547

548548
/// If this is an address projection path and \p Base is a SILValue with the
549549
/// object version of said type, use \p B and \p Loc to recreate the stored
550-
/// address projection path as a object projection path from \p Base. Return
550+
/// address projection path as an object projection path from \p Base. Return
551551
/// the SILValue at the end of the path.
552552
SILValue createObjectProjections(SILBuilder &B, SILLocation Loc,
553553
SILValue Base);

0 commit comments

Comments
 (0)