Skip to content

Commit 2f7753c

Browse files
joker-ephaokblast
authored andcommitted
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in MLIRContext.cpp (NFC)
1 parent 8bc7911 commit 2f7753c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/IR/MLIRContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ ArrayRef<RegisteredOperationName> MLIRContext::getRegisteredOperations() {
709709
/// Return information for registered operations by dialect.
710710
ArrayRef<RegisteredOperationName>
711711
MLIRContext::getRegisteredOperationsByDialect(StringRef dialectName) {
712-
auto lowerBound = llvm::lower_bound(
712+
auto *lowerBound = llvm::lower_bound(
713713
impl->sortedRegisteredOperations, dialectName, [](auto &lhs, auto &rhs) {
714714
return lhs.getDialect().getNamespace().compare(rhs);
715715
});
@@ -718,7 +718,7 @@ MLIRContext::getRegisteredOperationsByDialect(StringRef dialectName) {
718718
lowerBound->getDialect().getNamespace() != dialectName)
719719
return ArrayRef<RegisteredOperationName>();
720720

721-
auto upperBound =
721+
auto *upperBound =
722722
std::upper_bound(lowerBound, impl->sortedRegisteredOperations.end(),
723723
dialectName, [](auto &lhs, auto &rhs) {
724724
return lhs.compare(rhs.getDialect().getNamespace());

0 commit comments

Comments
 (0)