aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-05-12 16:17:43 -0700
committerGitHub <noreply@github.com>2025-05-12 16:17:43 -0700
commit86c5112409d51620663cf59afeaf5c3a4017eded (patch)
tree30d7dc6963fdd315bcde41b39449ac733cf9ee4b /llvm/lib/IR/Attributes.cpp
parent2b934cba3b18ed0137b0df05517c7adcc9dba760 (diff)
downloadllvm-86c5112409d51620663cf59afeaf5c3a4017eded.zip
llvm-86c5112409d51620663cf59afeaf5c3a4017eded.tar.gz
llvm-86c5112409d51620663cf59afeaf5c3a4017eded.tar.bz2
[NFCI][LLVM/MLIR] Adopt `TrailingObjects` convenience API (#138554)
Adopt `TrailingObjects` convenience API that was added in https://github.com/llvm/llvm-project/pull/138970 in LLVM and MLIR code.
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 33ac8bf..5b0ceb3 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -1237,7 +1237,7 @@ LLVM_DUMP_METHOD void AttributeSet::dump() const {
AttributeSetNode::AttributeSetNode(ArrayRef<Attribute> Attrs)
: NumAttrs(Attrs.size()) {
// There's memory after the node where we can store the entries in.
- llvm::copy(Attrs, getTrailingObjects<Attribute>());
+ llvm::copy(Attrs, getTrailingObjects());
for (const auto &I : *this) {
if (I.isStringAttribute())
@@ -1423,7 +1423,7 @@ AttributeListImpl::AttributeListImpl(ArrayRef<AttributeSet> Sets)
assert(!Sets.empty() && "pointless AttributeListImpl");
// There's memory after the node where we can store the entries in.
- llvm::copy(Sets, getTrailingObjects<AttributeSet>());
+ llvm::copy(Sets, getTrailingObjects());
// Initialize AvailableFunctionAttrs and AvailableSomewhereAttrs
// summary bitsets.