mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-14 00:31:06 +00:00
Don't sort the vector when it is empty. This should fix some expensive checking
failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9233272679
commit
f4f1b266fd
@ -38,7 +38,8 @@ MachineModuleInfoMachO::SymbolListTy
|
||||
MachineModuleInfoMachO::GetSortedStubs(const DenseMap<const MCSymbol*,
|
||||
const MCSymbol*> &Map) {
|
||||
MachineModuleInfoMachO::SymbolListTy List(Map.begin(), Map.end());
|
||||
qsort(&List[0], List.size(), sizeof(List[0]), SortSymbolPair);
|
||||
if (!List.empty())
|
||||
qsort(&List[0], List.size(), sizeof(List[0]), SortSymbolPair);
|
||||
return List;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user