summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOpenMP.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-10 15:32:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-10 15:32:48 +0000
commitad8e079c61d00116944879f2b9f2df32b021d07b (patch)
treebdf451fb067df0e28d5b53a8e92109866e52705c /clang/lib/Sema/SemaOpenMP.cpp
parent9b5786960d83d4318e220da05651073146a815c2 (diff)
downloadbcm5719-llvm-ad8e079c61d00116944879f2b9f2df32b021d07b.tar.gz
bcm5719-llvm-ad8e079c61d00116944879f2b9f2df32b021d07b.zip
Reduce double set lookups. NFC.
llvm-svn: 219504
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r--clang/lib/Sema/SemaOpenMP.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 6e43a3d4b26..23f5f13e8fd 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/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++].
OpenPOWER on IntegriCloud