Skip to content

Commit 6d3f53a

Browse files
[NFC][test] Minor corrections on test messages
1 parent 21f5032 commit 6d3f53a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/SILOptimizer/FunctionSignatureTransforms/ExistentialTransform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ void ExistentialTransform::populateThunkBody() {
573573
// copy_addr %valAdr to %temp // <== Temp CopyAddr
574574
// apply(%temp) // <== Temp is consumed by the apply
575575
//
576-
// Destroy the original arument and deallocation the temporary:
576+
// Destroy the original argument and deallocation the temporary:
577577
// destroy_addr %consumedExistential : $*Protocol
578578
// dealloc_stack %temp : $*T
579579
if (Temp.DestroyValue)

test/Parse/pointer_conversion.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func constPointerArguments(_ p: UnsafeMutablePointer<Int>,
164164
takesConstPointer([0, 1, 2])
165165
// <rdar://problem/22308330> QoI: CSDiags doesn't handle array -> pointer impl conversions well
166166
takesConstPointer([0.0, 1.0, 2.0])
167-
// expected-error@-1 3 {{annot convert value of type 'Double' to expected element type 'Int'}}
167+
// expected-error@-1 3 {{cannot convert value of type 'Double' to expected element type 'Int'}}
168168

169169
// We don't allow these conversions outside of function arguments.
170170
var x: UnsafePointer<Int> = &i // expected-error {{use of extraneous '&'}}

validation-test/compiler_crashers_2_fixed/0186-rdar46497155.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func foo(arr: [E], other: P) -> Bool {
2222
return arr.compactMap { i in
2323
var flag = false
2424
return try? i.getB(&flag)
25-
}.compactMap { u -> P? in // expected-error {{nable to infer type of a closure parameter 'u' in the current context}}
25+
}.compactMap { u -> P? in // expected-error {{unable to infer type of a closure parameter 'u' in the current context}}
2626
guard let a = try? u.foo() else { return nil }
2727
return a.value!
2828
}.contains {

0 commit comments

Comments
 (0)