[OPENMP]Fix codegen for private variably length vars in combined
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 14 Oct 2019 16:44:01 +0000 (16:44 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 14 Oct 2019 16:44:01 +0000 (16:44 +0000)
commit0e100037d7e3b481b45ebeb8b8a39ec0d175699e
treee2564b2848dc3f06092ec979395e91875a78eda2
parent1385b27e92d906dbce9dd10431c8c210d1f7ef45
[OPENMP]Fix codegen for private variably length vars in combined
constructs.

If OpenMP construct includes several capturing regions and the variable
is declared as private, the length of the inner variable length array is
not captured in outer captured regions, only in the innermost region.
Patch fixes this bug.

llvm-svn: 374787
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_teams_codegen.cpp