Skip to content

Commit 1b0aa6d

Browse files
authored
Spelling swiftcompilersources (#42617)
* spelling: diagnose Signed-off-by: Josh Soref <[email protected]> * spelling: diagnostic Signed-off-by: Josh Soref <[email protected]> * spelling: intentionally Signed-off-by: Josh Soref <[email protected]> * spelling: optimization Signed-off-by: Josh Soref <[email protected]> * spelling: target Signed-off-by: Josh Soref <[email protected]> * spelling: unbalanced Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 871634b commit 1b0aa6d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ if (NOT BOOTSTRAPPING_MODE)
182182
add_library(swiftCompilerModules ALIAS swiftCompilerStub)
183183

184184
else()
185-
# Note: "Swift" is not added intentinally here, because it would break
185+
# Note: "Swift" is not added intentionally here, because it would break
186186
# the bootstrapping build in case no swift toolchain is installed on the host.
187187
project(SwiftInTheCompiler LANGUAGES C CXX)
188188

SwiftCompilerSources/Sources/Optimizer/InstructionPasses/SimplifyStrongRetainRelease.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ private func isNotReferenceCounted(value: Value, context: PassContext) -> Bool {
7878
return isNotReferenceCounted(value: urc.operand, context: context)
7979
case let gvi as GlobalValueInst:
8080
// Since Swift 5.1, statically allocated objects have "immortal" reference
81-
// counts. Therefore we can safely eliminate unbalaced retains and
81+
// counts. Therefore we can safely eliminate unbalanced retains and
8282
// releases, because they are no-ops on immortal objects.
8383
// Note that the `simplifyGlobalValuePass` pass is deleting balanced
8484
// retains/releases, which doesn't require a Swift 5.1 minimum deployment
85-
// targert.
85+
// target.
8686
return gvi.function.isSwift51RuntimeAvailable
8787
case let rptr as RawPointerToRefInst:
8888
// Like `global_value` but for the empty collection singletons from the

SwiftCompilerSources/Sources/Optimizer/PassManager/PassRegistration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- PassRegistration.swift - Register optimzation passes -------------===//
1+
//===--- PassRegistration.swift - Register optimization passes -------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

SwiftCompilerSources/Sources/Optimizer/PassManager/PassUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- PassUtils.swift - Utilities for optimzation passes ---------------===//
1+
//===--- PassUtils.swift - Utilities for optimization passes ---------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

SwiftCompilerSources/Sources/Optimizer/Utilities/OptUtils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- OptUtils.swift - Utilities for optimzations ----------------------===//
1+
//===--- OptUtils.swift - Utilities for optimizations ----------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

0 commit comments

Comments
 (0)