swift
f4e49d5a - Sema: Fix UB in `NonisolatedNonsendingByDefault` migration diagnosis

Commit
88 days ago
Sema: Fix UB in `NonisolatedNonsendingByDefault` migration diagnosis The diagnostic can outlive the locally constructed attribute, which was passed by pointer, if there is an active `DiagnosticTransaction`.
Author
Committer
Parents
  • include/swift/AST
    • File
      DiagnosticsSema.def
  • lib/Sema
    • File
      NonisolatedNonsendingByDefaultMigration.cpp
  • test/Concurrency/attr_execution
    • File
      adoption_mode.swift
Loading