Skip to content

Commit b48b055

Browse files
authored
Merge pull request #3791 from swiftix/stdlib-cleanups
Use let instead of var to silence a compiler warning
2 parents cbb617e + 1358650 commit b48b055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ internal func reflect(instanceAddress: UInt, kind: InstanceKind) {
297297
/// The superclass is not (yet?) visited.
298298
public func reflect(object: AnyObject) {
299299
defer { _fixLifetime(object) }
300-
var address = Unmanaged.passUnretained(object).toOpaque()
300+
let address = Unmanaged.passUnretained(object).toOpaque()
301301
let addressValue = UInt(bitPattern: address)
302302
reflect(instanceAddress: addressValue, kind: .Object)
303303
}

0 commit comments

Comments
 (0)