@@ -1916,8 +1916,7 @@ static void genCompositeDoSimd(Fortran::lower::AbstractConverter &converter,
1916
1916
// When support for vectorization is enabled, then we need to add handling of
1917
1917
// if clause. Currently if clause can be skipped because we always assume
1918
1918
// SIMD length = 1.
1919
- genWsloopOp (converter, symTable, semaCtx, eval, loc, item->clauses , queue,
1920
- item);
1919
+ genWsloopOp (converter, symTable, semaCtx, eval, loc, queue, item);
1921
1920
}
1922
1921
1923
1922
static void
@@ -1969,8 +1968,7 @@ static void genOMPDispatch(Fortran::lower::AbstractConverter &converter,
1969
1968
/* outerCombined=*/ false );
1970
1969
break ;
1971
1970
case llvm::omp::Directive::OMPD_section:
1972
- genSectionOp (converter, symTable, semaCtx, eval, loc, /* clauses=*/ {}, queue,
1973
- item);
1971
+ genSectionOp (converter, symTable, semaCtx, eval, loc, queue, item);
1974
1972
break ;
1975
1973
case llvm::omp::Directive::OMPD_sections:
1976
1974
genSectionsOp (converter, symTable, semaCtx, eval, loc, queue, item);
@@ -2170,8 +2168,8 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
2170
2168
eval, directive.source , directive.v , clauses)};
2171
2169
if (directive.v == llvm::omp::Directive::OMPD_ordered) {
2172
2170
// Standalone "ordered" directive.
2173
- genOrderedOp (converter, symTable, semaCtx, eval, currentLocation, clauses ,
2174
- queue, queue .begin ());
2171
+ genOrderedOp (converter, symTable, semaCtx, eval, currentLocation, queue ,
2172
+ queue.begin ());
2175
2173
} else {
2176
2174
// Dispatch handles the "block-associated" variant of "ordered".
2177
2175
genOMPDispatch (converter, symTable, semaCtx, eval, currentLocation, queue,
@@ -2203,7 +2201,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
2203
2201
converter.getFirOpBuilder ().getModule (), semaCtx, eval, verbatim.source ,
2204
2202
llvm::omp::Directive::OMPD_flush, clauses)};
2205
2203
genFlushOp (converter, symTable, semaCtx, eval, currentLocation, objects,
2206
- clauses, queue, queue.begin ());
2204
+ queue, queue.begin ());
2207
2205
}
2208
2206
2209
2207
static void
@@ -2375,8 +2373,8 @@ genOMP(Fortran::lower::AbstractConverter &converter,
2375
2373
2376
2374
const auto &name = std::get<std::optional<Fortran::parser::Name>>(cd.t );
2377
2375
mlir::Location currentLocation = converter.getCurrentLocation ();
2378
- genCriticalOp (converter, symTable, semaCtx, eval, currentLocation, clauses ,
2379
- queue, queue .begin (), name);
2376
+ genCriticalOp (converter, symTable, semaCtx, eval, currentLocation, queue ,
2377
+ queue.begin (), name);
2380
2378
}
2381
2379
2382
2380
static void
0 commit comments