forked from OSchip/llvm-project
Use array_pod_sort because the list is contiguous.
llvm-svn: 119769
This commit is contained in:
parent
f53e4d9fd1
commit
20b5ea9858
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue