We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e871ce9 commit 7cfe4a5Copy full SHA for 7cfe4a5
SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift
@@ -320,7 +320,7 @@ private struct LifetimeVariable {
320
self = Self(introducer: allocStack)
321
case .global(let globalVar):
322
self.varDecl = globalVar.varDecl
323
- self.sourceLoc = nil
+ self.sourceLoc = varDecl?.nameLoc
324
case .class(let refAddr):
325
self.varDecl = refAddr.varDecl
326
self.sourceLoc = refAddr.location.sourceLoc
0 commit comments