diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp index 6c6c626ec4fe..3ce7b12f92f6 100644 --- a/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp @@ -925,7 +925,7 @@ bool LoopConvertCheck::isConvertible(ASTContext *Context, // do any further updates on this iteration. if (areDiagsSelfContained()) TUInfo = std::make_unique<TUTrackingInfo>(); - else if (TUInfo->getReplacedVars().count(Loop)) + else if (TUInfo->getReplacedVars().contains(Loop)) return false; // Check that we have exactly one index variable and at most one end variable. |
