Skip to content

Commit c8c326d

Browse files
author
Simon Moll
committed
[omp] drop parallel loop md (even if there is no clause)
1 parent 8b58781 commit c8c326d

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
@@ -3330,6 +3330,9 @@ bool CodeGenFunction::EmitOMPWorksharingLoop(
33303330
} else if (const auto *C = S.getSingleClause<OMPOrderClause>()) {
33313331
if (C->getKind() == OMPC_ORDER_concurrent)
33323332
CGF.LoopStack.setParallel(/*Enable=*/true);
3333+
} else {
3334+
// TODO: This may not be legal
3335+
CGF.LoopStack.setParallel(/*Enable=*/true);
33333336
}
33343337
},
33353338
[IVSize, IVSigned, Ordered, IL, LB, UB, ST, StaticChunkedOne, Chunk,

0 commit comments

Comments
 (0)