]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fix -Wunused-lambda-capture. NFC
authorFangrui Song <maskray@google.com>
Wed, 18 Apr 2018 19:32:01 +0000 (19:32 +0000)
committerFangrui Song <maskray@google.com>
Wed, 18 Apr 2018 19:32:01 +0000 (19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330284 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOpenMP.cpp

index 164b14c38735b5f4d3cc713ea88244ecbdbf7d35..6220e86b5442ac9d5ada4990d65a1db7513a463e 100644 (file)
@@ -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();