@@ -81,7 +81,7 @@ namespace swift {
81
81
// / \tparam PtrTraits The pointer traits of PointerTy
82
82
// / \tparam ScribbleMemory Instead of freeing any malloced memory, scribble the
83
83
// / 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 .
85
85
template <typename EnumTy, typename PointerTy, unsigned NumPointerKindBits,
86
86
unsigned NumIndexKindBits,
87
87
typename PtrTraits = llvm::PointerLikeTypeTraits<PointerTy>,
@@ -153,7 +153,7 @@ class PointerIntEnum {
153
153
}
154
154
155
155
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.
157
157
if (getRawKind () == EnumTy::LargeIndex)
158
158
freeMemory ();
159
159
@@ -197,7 +197,7 @@ class PointerIntEnum {
197
197
// / Convenience method for getting the raw underlying kind.
198
198
EnumTy getKind () const {
199
199
// 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.
201
201
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
202
202
return EnumTy (unsigned (Index >> IndexKindBitOffset));
203
203
}
@@ -252,7 +252,7 @@ class PointerIntEnum {
252
252
// / lower bits of the malloced large index.
253
253
EnumTy getRawKind () const {
254
254
// 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.
256
256
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
257
257
return EnumTy (unsigned (Index >> IndexKindBitOffset));
258
258
}
0 commit comments