[clang] Sort attributes according to source position before printing (PR #162556)
Giuliano Belinassi via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 10:59:05 PDT 2025
giulianobelinassi wrote:
Regarding https://github.com/llvm/llvm-project/pull/162687 : There is an oddie I found with
```
__attribute__((device)) register long global_dev_hreg asm("rsp"); // device-side error
```
This should error out but it doesn't anymore, probably because __attribute__((device)) is now processed after `asm("rsp")`. So some special logic needs to be done.
Or just sort by SourceLocation :)
https://github.com/llvm/llvm-project/pull/162556
More information about the cfe-commits
mailing list