diff --git a/mlir/lib/IR/MLIRContext.cpp b/mlir/lib/IR/MLIRContext.cpp index d43dcc5a5e2fd..2ab6b6189b438 100644 --- a/mlir/lib/IR/MLIRContext.cpp +++ b/mlir/lib/IR/MLIRContext.cpp @@ -692,12 +692,10 @@ ArrayRef MLIRContext::getRegisteredOperations() { /// Return information for registered operations by dialect. ArrayRef MLIRContext::getRegisteredOperationsByDialect(StringRef dialectName) { - auto lowerBound = - std::lower_bound(impl->sortedRegisteredOperations.begin(), - impl->sortedRegisteredOperations.end(), dialectName, - [](auto &lhs, auto &rhs) { - return lhs.getDialect().getNamespace().compare(rhs); - }); + auto lowerBound = llvm::lower_bound( + impl->sortedRegisteredOperations, dialectName, [](auto &lhs, auto &rhs) { + return lhs.getDialect().getNamespace().compare(rhs); + }); if (lowerBound == impl->sortedRegisteredOperations.end() || lowerBound->getDialect().getNamespace() != dialectName)