swift SIL: Fix variable 's' was never mutated; consider changing to 'let' constant warnings.

This commit is contained in:
Allan Shortlidge
2022-05-06 17:28:11 -07:00
parent d3351a7b33
commit d83c17e832
5 changed files with 6 additions and 6 deletions

View File

@@ -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())
}