mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 04:14:03 +08:00
[DebugInfo] Use llvm::remove_if (NFC) (#149543)
We can pass a range to llvm::remove_if.
This commit is contained in:
@@ -263,7 +263,7 @@ bool LVScope::removeElement(LVElement *Element) {
|
||||
return Item == Element;
|
||||
};
|
||||
auto RemoveElement = [Element, Predicate](auto &Container) -> bool {
|
||||
auto Iter = std::remove_if(Container->begin(), Container->end(), Predicate);
|
||||
auto Iter = llvm::remove_if(*Container, Predicate);
|
||||
if (Iter != Container->end()) {
|
||||
Container->erase(Iter, Container->end());
|
||||
Element->resetParent();
|
||||
|
||||
Reference in New Issue
Block a user