[OPENMP]Improve handling of analysis of unsupported VLAs in reductions.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Jul 2019 20:35:31 +0000 (20:35 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Jul 2019 20:35:31 +0000 (20:35 +0000)
commit8526031c5b984f3389089654cc410f314d533fd7
tree8b3a2563925b729c6494092dc40126c4255bf3ec
parentf002fcb2ad64a75a2f0aea3eb067614f4681284b
[OPENMP]Improve handling of analysis of unsupported VLAs in reductions.

Fixed the processing of the unsupported VLAs in the reduction clauses.
Used targetDiag if the diagnostics can be delayed and emit it
immediately if the target does not support VLAs and we're parsing target
directive with the reduction clauses.

llvm-svn: 365821
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_vla_messages.cpp