Author: dpolukhin Date: Fri Mar 11 01:58:34 2016 New Revision: 263202 URL: http://llvm.org/viewvc/llvm-project?rev=263202&view=rev Log: [OpenMP] NFC fix compilation warning about unused variable
lib/Sema/SemaOpenMP.cpp:9243:13: warning: variable ‘IsRightMostExpression’ set but not used Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=263202&r1=263201&r2=263202&view=diff ============================================================================== --- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original) +++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Fri Mar 11 01:58:34 2016 @@ -9240,8 +9240,7 @@ static Expr *CheckMapClauseExpressionBas 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)) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits