[clang] ab8a620 - [OpenMP] Fix a warning on an unused variable

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 16 23:46:57 PST 2021


Author: Kazu Hirata
Date: 2021-02-16T23:46:21-08:00
New Revision: ab8a62057384e1bbfd528a4012cd898511c83b02

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

LOG: [OpenMP] Fix a warning on an unused variable

Added: 
    

Modified: 
    clang/lib/Sema/SemaOpenMP.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index bc7e8b55c757..f2c9fe644d96 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -18109,6 +18109,7 @@ static void checkMappableExpressionList(
           return MC.getAssociatedDeclaration();
         });
     assert(I != CurComponents.end() && "Null decl on map clause.");
+    (void)I;
     QualType Type;
     auto *ASE = dyn_cast<ArraySubscriptExpr>(VE->IgnoreParens());
     auto *OASE = dyn_cast<OMPArraySectionExpr>(VE->IgnoreParens());


        


More information about the cfe-commits mailing list