diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-11-19 00:38:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-11-19 00:38:19 +0000 |
commit | cb21d1c9fd1cf53f063183f7eb28af7fa4052ef0 (patch) | |
tree | 97c18a761376819876aa86e1d0701fe2cc140da1 /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 91a7c59134fa331a8a5560ea0a96dd4ca50fea5b (diff) |
Use array_pod_sort because the list is contiguous.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 10542863c1..4b21cc6d85 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -343,7 +343,7 @@ public: for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator I = Regs.begin(), E = Regs.end(); I != E; ++I) Op->Registers.push_back(I->first); - std::sort(Op->Registers.begin(), Op->Registers.end()); + array_pod_sort(Op->Registers.begin(), Op->Registers.end()); Op->StartLoc = StartLoc; Op->EndLoc = EndLoc; return Op; |