File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -372,8 +372,7 @@ void BinaryBasicBlock::updateJumpTableSuccessors() {
372372 [](const BinaryBasicBlock *BB1, const BinaryBasicBlock *BB2) {
373373 return BB1->getInputOffset () < BB2->getInputOffset ();
374374 });
375- SuccessorBBs.erase (std::unique (SuccessorBBs.begin (), SuccessorBBs.end ()),
376- SuccessorBBs.end ());
375+ SuccessorBBs.erase (llvm::unique (SuccessorBBs), SuccessorBBs.end ());
377376
378377 for (BinaryBasicBlock *BB : SuccessorBBs)
379378 addSuccessor (BB);
Original file line number Diff line number Diff line change @@ -2376,7 +2376,7 @@ Error BinaryFunction::buildCFG(MCPlusBuilder::AllocatorIdTy AllocatorId) {
23762376 // Without doing jump table value profiling we don't have a use for extra
23772377 // (duplicate) branches.
23782378 llvm::sort (TakenBranches);
2379- auto NewEnd = std ::unique (TakenBranches. begin (), TakenBranches. end () );
2379+ auto NewEnd = llvm ::unique (TakenBranches);
23802380 TakenBranches.erase (NewEnd, TakenBranches.end ());
23812381
23822382 for (std::pair<uint32_t , uint32_t > &Branch : TakenBranches) {
Original file line number Diff line number Diff line change @@ -440,8 +440,7 @@ void DWARF5AcceleratorTable::computeBucketCount() {
440440 for (const auto &E : Entries)
441441 Uniques.push_back (E.second .HashValue );
442442 array_pod_sort (Uniques.begin (), Uniques.end ());
443- std::vector<uint32_t >::iterator P =
444- std::unique (Uniques.begin (), Uniques.end ());
443+ std::vector<uint32_t >::iterator P = llvm::unique (Uniques);
445444
446445 UniqueHashCount = std::distance (Uniques.begin (), P);
447446
You can’t perform that action at this time.
0 commit comments