[OPENMP] Fixed capturing of VLA variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 7 Nov 2016 08:07:25 +0000 (08:07 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 7 Nov 2016 08:07:25 +0000 (08:07 +0000)
commit420537fad8a227095255d65890b6c7b992325a75
tree8e2af4538cd9f351722c7461c5dd4e046f520350
parent8e06631b09f7bc735f8753df9e3ffb9818c855d8
[OPENMP] Fixed capturing of VLA variables.

After some changes in codegen capturing of VLA variables in OpenMP
regions was broken, causing compiler crash. Patch fixes this issue.

llvm-svn: 286098
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/parallel_codegen.cpp