Skip to content

Commit 36c78ec

Browse files
[DebugInfo] Use llvm::remove_if (NFC) (#149543)
We can pass a range to llvm::remove_if.
1 parent 3c1a09d commit 36c78ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/DebugInfo/LogicalView/Core/LVScope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ bool LVScope::removeElement(LVElement *Element) {
263263
return Item == Element;
264264
};
265265
auto RemoveElement = [Element, Predicate](auto &Container) -> bool {
266-
auto Iter = std::remove_if(Container->begin(), Container->end(), Predicate);
266+
auto Iter = llvm::remove_if(*Container, Predicate);
267267
if (Iter != Container->end()) {
268268
Container->erase(Iter, Container->end());
269269
Element->resetParent();

0 commit comments

Comments
 (0)