[llvm] r175048 - Use array_pod_sort.

Bill Wendling isanbard at gmail.com
Wed Feb 13 01:26:26 PST 2013


Author: void
Date: Wed Feb 13 03:26:26 2013
New Revision: 175048

URL: http://llvm.org/viewvc/llvm-project?rev=175048&view=rev
Log:
Use array_pod_sort.

Modified:
    llvm/trunk/lib/IR/Attributes.cpp

Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=175048&r1=175047&r2=175048&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Wed Feb 13 03:26:26 2013
@@ -412,7 +412,7 @@ AttributeSetNode *AttributeSetNode::get(
   FoldingSetNodeID ID;
 
   SmallVector<Attribute, 8> SortedAttrs(Attrs.begin(), Attrs.end());
-  std::sort(SortedAttrs.begin(), SortedAttrs.end());
+  array_pod_sort(SortedAttrs.begin(), SortedAttrs.end());
 
   for (SmallVectorImpl<Attribute>::iterator I = SortedAttrs.begin(),
          E = SortedAttrs.end(); I != E; ++I)





More information about the llvm-commits mailing list