summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 bc15c023142..94eb6978ce9 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -9240,8 +9240,7 @@ static Expr *CheckMapClauseExpressionBase(Sema &SemaRef, Expr *E) {
bool AllowUnitySizeArraySection = true;
bool AllowWholeSizeArraySection = true;
- for (bool IsRightMostExpression = true; !RelevantExpr;
- IsRightMostExpression = false) {
+ while (!RelevantExpr) {
E = E->IgnoreParenImpCasts();
if (auto *CurE = dyn_cast<DeclRefExpr>(E)) {
OpenPOWER on IntegriCloud