[Attributes] Use single method to fetch type from AttributeSet (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Jul 2021 19:09:06 +0000 (21:09 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Jul 2021 19:10:56 +0000 (21:10 +0200)
commitcd88a01cb8e90b5eae9f8bde82ff362b222a61c4
tree2f33a277fde8e2b93baf4eb515ba51f883ad1b42
parenta4856c739c570d5115d0b7646a58b918890d37d4
[Attributes] Use single method to fetch type from AttributeSet (NFC)

While it is nice to have separate methods in the public AttributeSet
API, we can fetch the type from the internal AttributeSetNode
using a generic API for all type attribute kinds.
llvm/lib/IR/AttributeImpl.h
llvm/lib/IR/Attributes.cpp