File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -8064,7 +8064,8 @@ void CodeGenFunction::EmitSimpleOMPExecutableDirective(
8064
8064
D.getDirectiveKind () == OMPD_critical ||
8065
8065
D.getDirectiveKind () == OMPD_section ||
8066
8066
D.getDirectiveKind () == OMPD_master ||
8067
- D.getDirectiveKind () == OMPD_masked) {
8067
+ D.getDirectiveKind () == OMPD_masked ||
8068
+ D.getDirectiveKind () == OMPD_unroll) {
8068
8069
EmitStmt (D.getAssociatedStmt ());
8069
8070
} else {
8070
8071
auto LPCRegion =
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -verify -fopenmp -x c -triple x86_64-apple-darwin10 %s
2
+ // RUN: %clang_cc1 -verify -fopenmp-simd -x c -triple x86_64-apple-darwin10 %s
3
+ // expected-no-diagnostics
4
+
5
+ void f (float * a , float * b ) {
6
+ #pragma omp unroll
7
+ for (int i = 0 ; i < 128 ; i ++ ) {
8
+ a [i ] = b [i ];
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments