Skip to content

Commit 76ae5b9

Browse files
Simon Mollefocht
Simon Moll
authored andcommitted
[omp] drop parallel loop md (even if there is no clause)
1 parent 882c7dd commit 76ae5b9

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
@@ -3298,6 +3298,9 @@ bool CodeGenFunction::EmitOMPWorksharingLoop(
32983298
} else if (const auto *C = S.getSingleClause<OMPOrderClause>()) {
32993299
if (C->getKind() == OMPC_ORDER_concurrent)
33003300
CGF.LoopStack.setParallel(/*Enable=*/true);
3301+
} else {
3302+
// TODO: This may not be legal
3303+
CGF.LoopStack.setParallel(/*Enable=*/true);
33013304
}
33023305
},
33033306
[IVSize, IVSigned, Ordered, IL, LB, UB, ST, StaticChunkedOne, Chunk,

0 commit comments

Comments
 (0)