mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift SIL: Fix variable 's' was never mutated; consider changing to 'let' constant warnings.
This commit is contained in:
@@ -25,7 +25,7 @@ final public class BasicBlock : ListNode, CustomStringConvertible, HasName {
|
||||
public var function: Function { SILBasicBlock_getFunction(bridged).function }
|
||||
|
||||
public var description: String {
|
||||
var s = SILBasicBlock_debugDescription(bridged)
|
||||
let s = SILBasicBlock_debugDescription(bridged)
|
||||
return String(cString: s.c_str())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user