r330284 - [OPENMP] Fix -Wunused-lambda-capture. NFC

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 18 12:32:01 PDT 2018


Author: maskray
Date: Wed Apr 18 12:32:01 2018
New Revision: 330284

URL: http://llvm.org/viewvc/llvm-project?rev=330284&view=rev
Log:
[OPENMP] Fix -Wunused-lambda-capture. NFC

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=330284&r1=330283&r2=330284&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Wed Apr 18 12:32:01 2018
@@ -11991,6 +11991,7 @@ static bool checkMapConflicts(
                "Map clause expression with no components!");
         assert(StackComponents.back().getAssociatedDeclaration() == VD &&
                "Map clause expression with unexpected base!");
+        (void)VD;
 
         // The whole expression in the stack.
         const Expr *RE = StackComponents.front().getAssociatedExpression();




More information about the cfe-commits mailing list