From 05d6b954a9835411a7cbf167c3930ae2f67f6a4d Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 7 Jan 2016 08:55:42 +0100 Subject: [PATCH] Fix recently introduced typos. --- docs/SIL.rst | 2 +- include/swift/AST/DiagnosticsDriver.def | 2 +- include/swift/Basic/PointerIntEnum.h | 4 ++-- lib/IRGen/LocalTypeData.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/SIL.rst b/docs/SIL.rst index a06c97933d808..4d6116e873ae8 100644 --- a/docs/SIL.rst +++ b/docs/SIL.rst @@ -1541,7 +1541,7 @@ A value ``%1`` is said to be *value-dependent* on a value ``%0`` if: - ``%1`` is the result of ``mark_dependence`` and ``%0`` is either of the operands. -- ``%1`` is the value address of an box allocation instruction of which +- ``%1`` is the value address of a box allocation instruction of which ``%0`` is the box reference. - ``%1`` is the result of a ``struct``, ``tuple``, or ``enum`` diff --git a/include/swift/AST/DiagnosticsDriver.def b/include/swift/AST/DiagnosticsDriver.def index 967a78e6a6844..a99d3de1c5bfd 100644 --- a/include/swift/AST/DiagnosticsDriver.def +++ b/include/swift/AST/DiagnosticsDriver.def @@ -77,7 +77,7 @@ ERROR(error_unknown_target,driver,none, "unknown target '%0'", (StringRef)) ERROR(error_framework_bridging_header,driver,none, - "using bridging headers with framework targetsĀ is unsupported", ()) + "using bridging headers with framework targets is unsupported", ()) ERROR(error_i_mode,driver,none, "the flag '-i' is no longer required and has been removed; " diff --git a/include/swift/Basic/PointerIntEnum.h b/include/swift/Basic/PointerIntEnum.h index aa393669da28b..8e18c2a3a7d7e 100644 --- a/include/swift/Basic/PointerIntEnum.h +++ b/include/swift/Basic/PointerIntEnum.h @@ -68,7 +68,7 @@ struct PointerIntEnumIndexKindValue /// PointerIntEnum. On 64 bit we have many more bits than that. /// /// By using this representation, we can make PointerIntEnum a true value type -/// that is trivially constructable and destructable without needing to malloc +/// that is trivially constructible and destructible without needing to malloc /// memory. /// /// In order for all of this to work, the user of this needs to construct an @@ -125,7 +125,7 @@ class PointerIntEnum { static constexpr unsigned NumIndexBits = sizeof(uintptr_t) * CHAR_BIT - IndexShiftOffset; - /// The maximum index that can be stored for a index PointerIntEnum caes. + /// The maximum index that can be stored for an index PointerIntEnum case. static constexpr uintptr_t MaxIndex = (uintptr_t(1) << NumIndexBits) - 2; /// The bit representation of an Invalid PointerIntEnum's storage. diff --git a/lib/IRGen/LocalTypeData.cpp b/lib/IRGen/LocalTypeData.cpp index a9cc7efb53302..bc825673d922b 100644 --- a/lib/IRGen/LocalTypeData.cpp +++ b/lib/IRGen/LocalTypeData.cpp @@ -127,7 +127,7 @@ llvm::Value *LocalTypeDataCache::tryGet(IRGenFunction &IGF, Key key) { // Make a new concrete entry at the active definition point. - // Register witih the active ConditionalDominanceScope if necessary. + // Register with the active ConditionalDominanceScope if necessary. bool isConditional = IGF.isConditionalDominancePoint(); if (isConditional) { IGF.registerConditionalLocalTypeDataKey(key);