From f107e6ca9bbfc82c980c3e8e5c6bf04261b49c90 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 13 Feb 2013 09:26:26 +0000 Subject: [PATCH] Use array_pod_sort. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175048 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 7d0bec2b118..3de304e7608 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -412,7 +412,7 @@ AttributeSetNode *AttributeSetNode::get(LLVMContext &C, FoldingSetNodeID ID; SmallVector SortedAttrs(Attrs.begin(), Attrs.end()); - std::sort(SortedAttrs.begin(), SortedAttrs.end()); + array_pod_sort(SortedAttrs.begin(), SortedAttrs.end()); for (SmallVectorImpl::iterator I = SortedAttrs.begin(), E = SortedAttrs.end(); I != E; ++I)