diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-30 04:23:23 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-04-30 04:23:23 +0000 |
commit | 9c821037434dc106543d6905f5519b1129eb904f (patch) | |
tree | 606d74503746bf46ee86c1491b27b1cc190dfb05 /clang/test/OpenMP/for_simd_loop_messages.cpp | |
parent | f8a16a952dddaf1d38d6f596b78b1041ce5ea2eb (diff) | |
download | bcm5719-llvm-9c821037434dc106543d6905f5519b1129eb904f.tar.gz bcm5719-llvm-9c821037434dc106543d6905f5519b1129eb904f.zip |
[OPENMP] Allow to use global variables as lcv in loop-based directives.
For proper codegen we need to capture variable in the OpenMP region. In loop-based directives loop control variables are private by default and they must be captured in this region. There was a problem with capturing of globals, used as lcv, as they was not marked as private by default.
Differential Revision: http://reviews.llvm.org/D9336
llvm-svn: 236201
Diffstat (limited to 'clang/test/OpenMP/for_simd_loop_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/for_simd_loop_messages.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/test/OpenMP/for_simd_loop_messages.cpp b/clang/test/OpenMP/for_simd_loop_messages.cpp index 403709f3453..db59d9d22ee 100644 --- a/clang/test/OpenMP/for_simd_loop_messages.cpp +++ b/clang/test/OpenMP/for_simd_loop_messages.cpp @@ -314,7 +314,6 @@ int test_iteration_spaces() { #pragma omp parallel { -// expected-error@+2 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be a variable with global storage without being explicitly marked as linear}} #pragma omp for simd for (globalii = 0; globalii < 10; globalii += 1) c[globalii] = a[globalii]; @@ -322,7 +321,6 @@ int test_iteration_spaces() { #pragma omp parallel { -// expected-error@+3 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be a variable with global storage without being explicitly marked as lastprivate}} #pragma omp for simd collapse(2) for (ii = 0; ii < 10; ii += 1) for (globalii = 0; globalii < 10; globalii += 1) |