From: Alexey Bataev Date: Mon, 19 Mar 2018 17:18:13 +0000 (+0000) Subject: [OPENMP] Fix build with MSVC, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4d6e973395b1cfa42763daf1d445fcb7b4baf4b;p=clang [OPENMP] Fix build with MSVC, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327868 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index c2b846e83a..24a4927577 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -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);