Skip to content

Commit d74d00e

Browse files
authored
Merge pull request #58796 from tshortli/sil-warnings-take-3
Revert #58731
2 parents 47201cb + 1ffe55b commit d74d00e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

SwiftCompilerSources/Sources/SIL/BasicBlock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final public class BasicBlock : ListNode, CustomStringConvertible, HasName {
2525
public var function: Function { SILBasicBlock_getFunction(bridged).function }
2626

2727
public var description: String {
28-
let s = SILBasicBlock_debugDescription(bridged)
28+
var s = SILBasicBlock_debugDescription(bridged)
2929
return String(cString: s.c_str())
3030
}
3131

SwiftCompilerSources/Sources/SIL/Function.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final public class Function : CustomStringConvertible, HasName {
2121
}
2222

2323
final public var description: String {
24-
let s = SILFunction_debugDescription(bridged)
24+
var s = SILFunction_debugDescription(bridged)
2525
return String(cString: s.c_str())
2626
}
2727

SwiftCompilerSources/Sources/SIL/GlobalVariable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final public class GlobalVariable : CustomStringConvertible, HasName {
1919
}
2020

2121
public var description: String {
22-
let s = SILGlobalVariable_debugDescription(bridged)
22+
var s = SILGlobalVariable_debugDescription(bridged)
2323
return String(cString: s.c_str())
2424
}
2525

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class Instruction : ListNode, CustomStringConvertible, Hashable {
3838
final public var function: Function { block.function }
3939

4040
final public var description: String {
41-
let s = SILNode_debugDescription(bridgedNode)
41+
var s = SILNode_debugDescription(bridgedNode)
4242
return String(cString: s.c_str())
4343
}
4444

@@ -136,7 +136,7 @@ public class SingleValueInstruction : Instruction, Value {
136136

137137
public final class MultipleValueInstructionResult : Value {
138138
final public var description: String {
139-
let s = SILNode_debugDescription(bridgedNode)
139+
var s = SILNode_debugDescription(bridgedNode)
140140
return String(cString: s.c_str())
141141
}
142142

SwiftCompilerSources/Sources/SIL/Value.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public protocol Value : AnyObject, CustomStringConvertible {
2121

2222
extension Value {
2323
public var description: String {
24-
let s = SILNode_debugDescription(bridgedNode)
24+
var s = SILNode_debugDescription(bridgedNode)
2525
return String(cString: s.c_str())
2626
}
2727

0 commit comments

Comments
 (0)