Skip to content

Commit 8ea97f3

Browse files
authored
Merge pull request swiftlang#84245 from atrick/lifedep-log
[NFC] LifetimeDependenceDiagnostics debug output
2 parents 1f8d12d + 979a250 commit 8ea97f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private struct DiagnoseDependence {
159159
/// Check that this use is inside the dependence scope.
160160
func checkInScope(operand: Operand) -> WalkResult {
161161
if let range, !range.inclusiveRangeContains(operand.instruction) {
162-
log(" out-of-range: \(operand.instruction)")
162+
log(" out-of-range error: \(operand.instruction)")
163163
reportError(operand: operand, diagID: .lifetime_outside_scope_use)
164164
return .abortWalk
165165
}
@@ -168,7 +168,7 @@ private struct DiagnoseDependence {
168168
}
169169

170170
func reportEscaping(operand: Operand) {
171-
log(" escaping: \(operand.instruction)")
171+
log(" escaping error: \(operand.instruction)")
172172
reportError(operand: operand, diagID: .lifetime_outside_scope_escape)
173173
}
174174

0 commit comments

Comments
 (0)