From 663581df129e0b73fd4c41ebfd5dcdfb2acc5e17 Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Wed, 10 Mar 2021 13:28:53 -0800 Subject: [PATCH] [NFC] Fix a compiler warning Fix a warning caused by -Wrange-loop-analysis Patch by Xiaoqing Wu Differential Revision: https://reviews.llvm.org/D98297 --- include/llvm/ADT/SetOperations.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/SetOperations.h b/include/llvm/ADT/SetOperations.h index d3c22306cb5..62f1d26dc1c 100644 --- a/include/llvm/ADT/SetOperations.h +++ b/include/llvm/ADT/SetOperations.h @@ -71,7 +71,7 @@ template 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;