Commit a50e63b
authored
Fixes and closes llvm#53952. Setting the ASTHasCompilerErrors member variable correctly based on the PP diagnostics. (llvm#68127)
The issue llvm#53952 is reported indicating clang is giving a crashing pch
file, when hasErrors is been passed incorrectly to WriteAST method.
To fix the issue, the parameter has been removed and instead we're
relying on the results of `hasUncompilableErrorOccured()` instead of
letting the caller override it.
Fixes llvm#539521 parent f320065 commit a50e63b
File tree
4 files changed
+9
-21
lines changed- clang
- include/clang/Serialization
- lib
- Frontend
- Serialization
4 files changed
+9
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2341 | 2341 | | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | | - | |
2345 | | - | |
2346 | | - | |
2347 | | - | |
2348 | | - | |
2349 | | - | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
2350 | 2347 | | |
2351 | 2348 | | |
2352 | 2349 | | |
| |||
2356 | 2353 | | |
2357 | 2354 | | |
2358 | 2355 | | |
2359 | | - | |
2360 | | - | |
2361 | | - | |
2362 | 2356 | | |
2363 | | - | |
2364 | | - | |
| 2357 | + | |
2365 | 2358 | | |
2366 | 2359 | | |
2367 | 2360 | | |
2368 | 2361 | | |
2369 | 2362 | | |
2370 | | - | |
| 2363 | + | |
2371 | 2364 | | |
2372 | 2365 | | |
2373 | 2366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4622 | 4622 | | |
4623 | 4623 | | |
4624 | 4624 | | |
4625 | | - | |
4626 | 4625 | | |
4627 | 4626 | | |
4628 | 4627 | | |
4629 | 4628 | | |
4630 | | - | |
| 4629 | + | |
| 4630 | + | |
4631 | 4631 | | |
4632 | 4632 | | |
4633 | 4633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 68 | + | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
| |||
0 commit comments