We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f939f5 commit fe38030Copy full SHA for fe38030
lldb/source/Target/DynamicRegisterInfo.cpp
@@ -497,10 +497,7 @@ void DynamicRegisterInfo::Finalize(const ArchSpec &arch) {
497
pos != end; ++pos) {
498
if (pos->second.size() > 1) {
499
llvm::sort(pos->second);
500
- reg_num_collection::iterator unique_end =
501
- std::unique(pos->second.begin(), pos->second.end());
502
- if (unique_end != pos->second.end())
503
- pos->second.erase(unique_end, pos->second.end());
+ pos->second.erase(llvm::unique(pos->second), pos->second.end());
504
}
505
assert(!pos->second.empty());
506
if (pos->second.back() != LLDB_INVALID_REGNUM)
0 commit comments