1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[NFC] Fix a compiler warning

Fix a warning caused by -Wrange-loop-analysis

Patch by Xiaoqing Wu <xiaoqing_wu@apple.com>

Differential Revision: https://reviews.llvm.org/D98297
This commit is contained in:
Quentin Colombet 2021-03-10 13:28:53 -08:00
parent d76d8c5fde
commit 663581df12

View File

@ -71,7 +71,7 @@ template <class S1Ty, class S2Ty>
bool set_is_subset(const S1Ty &S1, const S2Ty &S2) {
if (S1.size() > S2.size())
return false;
for (const auto &It : S1)
for (const auto It : S1)
if (!S2.count(It))
return false;
return true;