Skip to content

Commit

Permalink
Fix recently introduced typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Dec 30, 2015
1 parent f9c2cd1 commit 3d2997f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions include/swift/Basic/PointerIntEnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace swift {
/// \tparam PtrTraits The pointer traits of PointerTy
/// \tparam ScribbleMemory Instead of freeing any malloced memory, scribble the
/// memory. This enables us to test that memory is properly being
/// deallocated. Should only be set to true during unittesting.
/// deallocated. Should only be set to true during unit testing.
template <typename EnumTy, typename PointerTy, unsigned NumPointerKindBits,
unsigned NumIndexKindBits,
typename PtrTraits = llvm::PointerLikeTypeTraits<PointerTy>,
Expand Down Expand Up @@ -153,7 +153,7 @@ class PointerIntEnum {
}

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

Expand Down Expand Up @@ -197,7 +197,7 @@ class PointerIntEnum {
/// Convenience method for getting the raw underlying kind.
EnumTy getKind() const {
// First grab the bits of projection excluding the top 3 bits. If these bits
// take ona value <= 4095, then we have a small index.
// take on a value <= 4095, then we have a small index.
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
return EnumTy(unsigned(Index >> IndexKindBitOffset));
}
Expand Down Expand Up @@ -252,7 +252,7 @@ class PointerIntEnum {
/// lower bits of the malloced large index.
EnumTy getRawKind() const {
// First grab the bits of projection excluding the top 3 bits. If these bits
// take ona value <= 2047, then we have a small index.
// take on a value <= 2047, then we have a small index.
if ((Index & IndexKindOffsetBitMask) <= MaxSmallIndex) {
return EnumTy(unsigned(Index >> IndexKindBitOffset));
}
Expand Down
6 changes: 3 additions & 3 deletions include/swift/SIL/Projection.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class NewProjection {
NumPointerKindBits, NumIndexKindBits>;
/// A pointer sized type that is used to store the kind of projection that is
/// being represented and also all of the necessary information to convert a
/// base SILTyepe to a derived field SILType.
/// base SILType to a derived field SILType.
ValueTy Value;

public:
Expand Down Expand Up @@ -535,7 +535,7 @@ class NewProjectionPath {
/// to an address derived type.
bool isAddressProjectionPath() const;

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

Expand All @@ -547,7 +547,7 @@ class NewProjectionPath {

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

0 comments on commit 3d2997f

Please sign in to comment.