[Attributes] Simplify attribute sorting (NFCI)
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Jul 2021 19:08:41 +0000 (21:08 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Jul 2021 19:11:59 +0000 (21:11 +0200)
commit363e12ae6fceea3870898bc230841c8b0b00925a
tree11f9fcf26ed8df5a871e406986227c249e458d5c
parent3fb0621fafbb16ea157830b308c26a77ba0a04e3
[Attributes] Simplify attribute sorting (NFCI)

It's not necessary to explicitly sort by enum/int/type attribute,
as the attribute kinds are already sorted this way. We can directly
sort by kind.
llvm/lib/IR/Attributes.cpp