Skip to content

Commit 20b5ea9

Browse files
committed
Use array_pod_sort because the list is contiguous.
llvm-svn: 119769
1 parent f53e4d9 commit 20b5ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class ARMOperand : public MCParsedAsmOperand {
343343
for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator
344344
I = Regs.begin(), E = Regs.end(); I != E; ++I)
345345
Op->Registers.push_back(I->first);
346-
std::sort(Op->Registers.begin(), Op->Registers.end());
346+
array_pod_sort(Op->Registers.begin(), Op->Registers.end());
347347
Op->StartLoc = StartLoc;
348348
Op->EndLoc = EndLoc;
349349
return Op;

0 commit comments

Comments
 (0)