]> granicus.if.org Git - clang/commitdiff
[OPENMP] Fix build with MSVC, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 19 Mar 2018 17:18:13 +0000 (17:18 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 19 Mar 2018 17:18:13 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327868 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp

index c2b846e83a16e13b9578af47ddb6eedbb57e11dc..24a492757725cc3b785660118ccb9807f3b3286d 100644 (file)
@@ -1419,8 +1419,8 @@ void CGOpenMPRuntimeNVPTX::emitGenericParallelCall(
   auto *ThreadID = getThreadID(CGF, Loc);
   llvm::Value *Args[] = {RTLoc, ThreadID};
 
-  auto &&SeqGen = [this, Fn, CapturedVars, Args, Loc](CodeGenFunction &CGF,
-                                                      PrePostActionTy &) {
+  auto &&SeqGen = [this, Fn, CapturedVars, &Args, Loc](CodeGenFunction &CGF,
+                                                       PrePostActionTy &) {
     auto &&CodeGen = [this, Fn, CapturedVars, Loc](CodeGenFunction &CGF,
                                                    PrePostActionTy &Action) {
       Action.Enter(CGF);