aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 08:54:23 -0700
committerGitHub <noreply@github.com>2024-08-04 08:54:23 -0700
commit7df9da7d780f1ece175020c5aef44b4b06df05b7 (patch)
tree6592badbd9bbc7ca877249d16f5685d6e6b34129 /llvm/lib/IR/Attributes.cpp
parent2e9d2f183f1c4e458201d05e4dea96249f8a8f65 (diff)
downloadllvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.zip
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.gz
llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.bz2
[llvm] Construct SmallVector with ArrayRef (NFC) (#101872)
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index b2fdd21..abd05e3 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -1040,7 +1040,7 @@ AttributeSetNode::AttributeSetNode(ArrayRef<Attribute> Attrs)
AttributeSetNode *AttributeSetNode::get(LLVMContext &C,
ArrayRef<Attribute> Attrs) {
- SmallVector<Attribute, 8> SortedAttrs(Attrs.begin(), Attrs.end());
+ SmallVector<Attribute, 8> SortedAttrs(Attrs);
llvm::sort(SortedAttrs);
return getSorted(C, SortedAttrs);
}