]> granicus.if.org Git - clang/commit
[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)
commita27e109d301df9275389883a9ecccd54eda18078
tree569a06bff90c8d0e4404b6ffad2e475e262524f2
parent26738403adf29b5bb67b47a6de6f4c9e92ba6aa5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374787 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/target_teams_codegen.cpp