Skip to content

Commit 8a5a782

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-for-range-copy in VariantValue.cpp (NFC)
1 parent 1b79150 commit 8a5a782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Query/Matcher/VariantValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class VariantMatcher::VariadicOpPayload : public VariantMatcher::Payload {
3535

3636
std::optional<DynMatcher> getDynMatcher() const override {
3737
std::vector<DynMatcher> dynMatchers;
38-
for (auto variantMatcher : args) {
38+
for (const auto &variantMatcher : args) {
3939
std::optional<DynMatcher> dynMatcher = variantMatcher.getDynMatcher();
4040
if (dynMatcher)
4141
dynMatchers.push_back(dynMatcher.value());

0 commit comments

Comments
 (0)