Skip to content

Commit e1fa3be

Browse files
Simon Mollefocht
Simon Moll
authored andcommitted
[omp] drop parallel loop md (even if there is no clause)
1 parent 69ef101 commit e1fa3be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CodeGen/CGStmtOpenMP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,6 +3300,9 @@ bool CodeGenFunction::EmitOMPWorksharingLoop(
33003300
} else if (const auto *C = S.getSingleClause<OMPOrderClause>()) {
33013301
if (C->getKind() == OMPC_ORDER_concurrent)
33023302
CGF.LoopStack.setParallel(/*Enable=*/true);
3303+
} else {
3304+
// TODO: This may not be legal
3305+
CGF.LoopStack.setParallel(/*Enable=*/true);
33033306
}
33043307
},
33053308
[IVSize, IVSigned, Ordered, IL, LB, UB, ST, StaticChunkedOne, Chunk,

0 commit comments

Comments
 (0)