Commit e101afc
authored
[CIR][NFC] Fix maybe_unused build issues (#163997)
This fixes a build failure that occurs with some versions of clang.
There was a problem in clang, which has been fixed in more recent
versions, where mixing GNU-style attributes with C++-style attributes
caused a failure. A recent code change updated a few uses of
`LLVM_ATTRIBUTE_UNUSED` to `[[maybe_unused]]`, triggering this problem.
This change reorders the attributes in a way that avoids the issue.1 parent 9324afb commit e101afc
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
0 commit comments