浏览代码

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330284 91177308-0d34-0410-b5e6-96231b3b80d8
Fangrui Song 7 年之前
父节点
当前提交
202f222f94
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/Sema/SemaOpenMP.cpp

+ 1 - 0
lib/Sema/SemaOpenMP.cpp

@@ -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();