Skip to content

Commit 8d903db

Browse files
committed
Change auto to const_iterator to suppress clang-tidy warnings
1 parent 1722ed0 commit 8d903db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/DecoderTableEmitter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ struct DecoderTableInfo {
3434
}
3535

3636
unsigned getPredicateIndex(StringRef Predicate) const {
37-
auto I = find(Predicates, Predicate);
37+
PredicateSet::const_iterator I = find(Predicates, Predicate);
3838
assert(I != Predicates.end());
3939
return std::distance(Predicates.begin(), I);
4040
}
4141

4242
unsigned getDecoderIndex(StringRef Decoder) const {
43-
auto I = find(Decoders, Decoder);
43+
DecoderSet::const_iterator I = find(Decoders, Decoder);
4444
assert(I != Decoders.end());
4545
return std::distance(Decoders.begin(), I);
4646
}

0 commit comments

Comments
 (0)