r263202 - [OpenMP] NFC fix compilation warning about unused variable

Dmitry Polukhin via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 10 23:58:35 PST 2016


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)) {




More information about the cfe-commits mailing list