summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-11-19 00:38:19 +0000
committerBill Wendling <isanbard@gmail.com>2010-11-19 00:38:19 +0000
commit20b5ea98583a7e00574be4ee32ebac517d918acf (patch)
treea93c600b96e0fa3858980b425d1677acbc891ca1
parentf53e4d9fd155b61da8ac20fc025b956a7403d13a (diff)
downloadbcm5719-llvm-20b5ea98583a7e00574be4ee32ebac517d918acf.tar.gz
bcm5719-llvm-20b5ea98583a7e00574be4ee32ebac517d918acf.zip
Use array_pod_sort because the list is contiguous.
llvm-svn: 119769
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 10542863c19..4b21cc6d85b 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud