Commit e53acac
authored
[clang] Properly check for -mms-bitfields in Sema/struct-packed-align.c (#172337)
Before #71148, providing only `-triple=x86_64-windows-gnu` to cc1 did
not set `-mms-bitfields` (`-fms-layout-compatibility=microsoft`).
Therefore, MS-compatible layout was only triggered in true MSVC targets.
This is not the case now, so we should only check if we are compiling
for Windows to test to determine if MS layout will be used.
The change of behavior is harmless as it only affects direct invocations
of cc1.1 parent b988555 commit e53acac
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
0 commit comments