[OpenMP] NFC fix compilation warning about unused variable
authorDmitry Polukhin <dmitry.polukhin@gmail.com>
Fri, 11 Mar 2016 07:58:34 +0000 (07:58 +0000)
committerDmitry Polukhin <dmitry.polukhin@gmail.com>
Fri, 11 Mar 2016 07:58:34 +0000 (07:58 +0000)
lib/Sema/SemaOpenMP.cpp:9243:13: warning: variable â€˜IsRightMostExpression’ set but not used

llvm-svn: 263202

clang/lib/Sema/SemaOpenMP.cpp

index bc15c02..94eb697 100644 (file)
@@ -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)) {