Commit f4e49d5
committed
Sema: Fix UB in
The diagnostic can outlive the locally constructed attribute, which was
passed by pointer, if there is an active `DiagnosticTransaction`.NonisolatedNonsendingByDefault migration diagnosis1 parent f57e2d7 commit f4e49d5
File tree
3 files changed
+51
-51
lines changed- include/swift/AST
- lib/Sema
- test/Concurrency/attr_execution
3 files changed
+51
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8698 | 8698 | | |
8699 | 8699 | | |
8700 | 8700 | | |
8701 | | - | |
8702 | | - | |
| 8701 | + | |
| 8702 | + | |
8703 | 8703 | | |
8704 | 8704 | | |
8705 | 8705 | | |
8706 | 8706 | | |
8707 | 8707 | | |
8708 | | - | |
8709 | | - | |
| 8708 | + | |
| 8709 | + | |
8710 | 8710 | | |
8711 | 8711 | | |
8712 | 8712 | | |
8713 | 8713 | | |
8714 | 8714 | | |
8715 | | - | |
| 8715 | + | |
8716 | 8716 | | |
8717 | | - | |
| 8717 | + | |
8718 | 8718 | | |
8719 | 8719 | | |
8720 | 8720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments