[OPENMP] Temporary fix for processing of global variables in loops.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 14 Nov 2014 04:08:45 +0000 (04:08 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 14 Nov 2014 04:08:45 +0000 (04:08 +0000)
commit9aba41c82211c1198af8fc2cf6292a22aaab9806
tree6a817bce6edb840d4e5c4ad9ebb6f03ba6d7ed77
parent950a166710db5ca1ff25f8ed5fd2be3c210e1a81
[OPENMP] Temporary fix for processing of global variables in loops.
Currently there is a bug in processing of global variables used as loop control variables in 'omp for/simd' constructs: these globals must be captured as private variables, but currently they are nor. This is a temporary bug fix for this problem until the correct solution is prepared. If a global var used as lcv without explicit mark as a private/linear/lastprivate the error message is emitted.

llvm-svn: 221970
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/for_loop_messages.cpp
clang/test/OpenMP/for_simd_loop_messages.cpp
clang/test/OpenMP/parallel_for_loop_messages.cpp
clang/test/OpenMP/parallel_for_simd_loop_messages.cpp
clang/test/OpenMP/simd_loop_messages.cpp