summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-03-19 17:18:13 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-03-19 17:18:13 +0000
commit634b5baa4ebeff5aaf6a57dae850f3e3272188a3 (patch)
tree85f7ab88c97b6e3fdc16440bcbab7181a303b26c /clang/lib
parentb7f3cba84cfb717e4a95f90c6d2a8ec4b20c1d3f (diff)
downloadbcm5719-llvm-634b5baa4ebeff5aaf6a57dae850f3e3272188a3.tar.gz
bcm5719-llvm-634b5baa4ebeff5aaf6a57dae850f3e3272188a3.zip
[OPENMP] Fix build with MSVC, NFC.
llvm-svn: 327868
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
index c2b846e83a1..24a49275772 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud