Skip to content

Commit 84956a0

Browse files
author
Simon Moll
committed
[omp] drop parallel loop md (even if there is no clause)
1 parent 7912f6f commit 84956a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CodeGen/CGStmtOpenMP.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -3163,6 +3163,9 @@ bool CodeGenFunction::EmitOMPWorksharingLoop(
31633163
} else if (const auto *C = S.getSingleClause<OMPOrderClause>()) {
31643164
if (C->getKind() == OMPC_ORDER_concurrent)
31653165
CGF.LoopStack.setParallel(/*Enable=*/true);
3166+
} else {
3167+
// TODO: This may not be legal
3168+
CGF.LoopStack.setParallel(/*Enable=*/true);
31663169
}
31673170
},
31683171
[IVSize, IVSigned, Ordered, IL, LB, UB, ST, StaticChunkedOne, Chunk,

0 commit comments

Comments
 (0)