[OPENMP] Fix for codegen of captured variables in inlined directives.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 27 Apr 2016 07:56:03 +0000 (07:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 27 Apr 2016 07:56:03 +0000 (07:56 +0000)
commit4ba78a46ff760b254d4853e676e12ce35b4f65ac
treedf50a2666cd6cc7703443edffa600a505ae78f65
parenta2d72377a111b96f22b780e0573bbc79fe005729
[OPENMP] Fix for codegen of captured variables in inlined directives.

Currently there is a problem with codegen of inlined directives inside
lambdas, it may cause a crash during codegen because of incorrect
capturing of variables. Patch fixes this problem.

llvm-svn: 267677
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/OpenMP/critical_codegen.cpp
clang/test/OpenMP/for_reduction_codegen.cpp
clang/test/OpenMP/for_reduction_codegen_UDR.cpp
clang/test/OpenMP/simd_codegen.cpp