Commit 7b269b6
committed
[clang] Unify -mspeculative-load-hardening as a benign compiler option
Before this patch, compilations using modules &
-mspeculative-load-hardening because of a configuration mismatch because
it was not consistent whether this option impacts module compatibility.
This repairs it by always treating it as benign. This was determined by
checking if the option enables any kind of preprocessor checks and
comparing how the compiler handles a similiar option that impacts codegen
(-fvisibility=hidden) but is more widely used.1 parent db6231b commit 7b269b6
File tree
2 files changed
+7
-1
lines changed- clang
- include/clang/Basic
- test/ClangScanDeps
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
0 commit comments