mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-01 10:57:21 +00:00
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
This commit is contained in:
parent
91a7c59134
commit
cb21d1c9fd
@ -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
Block a user