From: Dmitry Polukhin Date: Fri, 11 Mar 2016 07:58:34 +0000 (+0000) Subject: [OpenMP] NFC fix compilation warning about unused variable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=441a3ed482b5cae5fbfef7eb28b72e11f7762402;p=clang [OpenMP] NFC fix compilation warning about unused variable lib/Sema/SemaOpenMP.cpp:9243:13: warning: variable ‘IsRightMostExpression’ set but not used git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOpenMP.cpp b/lib/Sema/SemaOpenMP.cpp index bc15c02314..94eb6978ce 100644 --- a/lib/Sema/SemaOpenMP.cpp +++ b/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(E)) {