Commit 21ccb27
authored
[ClangImporter] Undo changes around createClangInvocation (followup to swiftlang#85445) (swiftlang#85457)
Feedback in swiftlang#85445 after it merged pointed out that the changes around
`createClangInvocation` are not necessary because `CompilerInvocation`
do not hold a reference to `clang::DiagnosticOptions`, only the
`clang::driver::Driver` does.
These changes undo the modifications done there and return the code to
the previous state (but keeps the changes around `createClangDriver`
which was causing the use-after-free).1 parent 80e6cbf commit 21ccb27
File tree
3 files changed
+10
-17
lines changed- include/swift/ClangImporter
- lib/ClangImporter
3 files changed
+10
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
| 219 | + | |
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
| 1287 | + | |
1290 | 1288 | | |
1291 | 1289 | | |
1292 | 1290 | | |
| |||
1300 | 1298 | | |
1301 | 1299 | | |
1302 | 1300 | | |
1303 | | - | |
| 1301 | + | |
1304 | 1302 | | |
1305 | | - | |
1306 | | - | |
| 1303 | + | |
| 1304 | + | |
1307 | 1305 | | |
1308 | 1306 | | |
1309 | 1307 | | |
1310 | 1308 | | |
1311 | 1309 | | |
1312 | 1310 | | |
1313 | | - | |
| 1311 | + | |
1314 | 1312 | | |
1315 | | - | |
| 1313 | + | |
1316 | 1314 | | |
1317 | 1315 | | |
1318 | 1316 | | |
| |||
1360 | 1358 | | |
1361 | 1359 | | |
1362 | 1360 | | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
| 1361 | + | |
| 1362 | + | |
1366 | 1363 | | |
1367 | 1364 | | |
1368 | 1365 | | |
| |||
1438 | 1435 | | |
1439 | 1436 | | |
1440 | 1437 | | |
1441 | | - | |
| 1438 | + | |
1442 | 1439 | | |
1443 | 1440 | | |
1444 | 1441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | 554 | | |
558 | 555 | | |
559 | 556 | | |
| |||
0 commit comments