swift
45a98a72 - LifetimeDependenceDiagnostics: check for on-stack trivial copies

Commit
138 days ago
LifetimeDependenceDiagnostics: check for on-stack trivial copies Add a diagnostic to catch addressable dependencies on a trivial values that have been copied to a temporary stack location. SILGen should never copy the source of an addressable dependency to a temporary stack location, but this diagnostic catches such compiler bugs rather than allowing miscompilation. Fixes rdar://159680262 ([nonescapable] diagnose dependence on a temporary copy of a global array)
Author
Committer
Parents
Loading