[clang] a683ba4 - [NFCI] Fix set-but-unused warning in CGOpenMPRuntime.cpp

Dávid Bolvanský via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 23:49:30 PDT 2022


Author: Dávid Bolvanský
Date: 2022-03-24T07:49:21+01:00
New Revision: a683ba4ff5a04025ad5221ef2262195212a51577

URL: https://github.com/llvm/llvm-project/commit/a683ba4ff5a04025ad5221ef2262195212a51577
DIFF: https://github.com/llvm/llvm-project/commit/a683ba4ff5a04025ad5221ef2262195212a51577.diff

LOG: [NFCI] Fix set-but-unused warning in CGOpenMPRuntime.cpp

Added: 
    

Modified: 
    clang/lib/CodeGen/CGOpenMPRuntime.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index cd58a1b67a166..cb7ab2273a300 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -11989,7 +11989,6 @@ void CGOpenMPRuntime::emitDeclareSimdFunction(const FunctionDecl *FD,
       }
       // Mark linear parameters.
       auto *SI = Attr->steps_begin();
-      auto *MI = Attr->modifiers_begin();
       for (const Expr *E : Attr->linears()) {
         E = E->IgnoreParenImpCasts();
         unsigned Pos;
@@ -12033,7 +12032,6 @@ void CGOpenMPRuntime::emitDeclareSimdFunction(const FunctionDecl *FD,
         if (Linear == ParamAttr.Kind)
           ParamAttr.StrideOrArg = ParamAttr.StrideOrArg * PtrRescalingFactor;
         ++SI;
-        ++MI;
       }
       llvm::APSInt VLENVal;
       SourceLocation ExprLoc;


        


More information about the cfe-commits mailing list