diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-10 15:32:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-10 15:32:48 +0000 |
commit | 86f8bacaebd13e60f9aa0e7c373ec7505d54ae7f (patch) | |
tree | 32743d8b5fd0f8e09bac648fbc5ec94e2541a8fa /lib/Sema/SemaOpenMP.cpp | |
parent | e30a0772b776ac9dd48a7797ea585f9c2337ba99 (diff) |
Reduce double set lookups. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | lib/Sema/SemaOpenMP.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index 6e43a3d4b2..23f5f13e8f 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/lib/Sema/SemaOpenMP.cpp @@ -2483,8 +2483,7 @@ static bool CheckOpenMPIterationSpace( // that is the increment of the associated for-loop. // Exclude loop var from the list of variables with implicitly defined data // sharing attributes. - while (VarsWithImplicitDSA.count(Var) > 0) - VarsWithImplicitDSA.erase(Var); + VarsWithImplicitDSA.erase(Var); // OpenMP [2.14.1.1, Data-sharing Attribute Rules for Variables Referenced in // a Construct, C/C++]. |