@@ -231,10 +231,10 @@ getAtomicMemoryOrder(semantics::SemanticsContext &semaCtx,
231231static std::optional<mlir::omp::ClauseMemoryOrderKind>
232232makeValidForAction (std::optional<mlir::omp::ClauseMemoryOrderKind> memOrder,
233233 int action0, int action1, unsigned version) {
234- // When the atomic default memory order specified on a REQUIRES directive is
235- // disallowed on a given ATOMIC operation, and it's not ACQ_REL, the order
236- // reverts to RELAXED. ACQ_REL decays to either ACQUIRE or RELEASE, depending
237- // on the operation.
234+ // When the atomic default memory order specified on a REQUIRES directive is
235+ // disallowed on a given ATOMIC operation, and it's not ACQ_REL, the order
236+ // reverts to RELAXED. ACQ_REL decays to either ACQUIRE or RELEASE, depending
237+ // on the operation.
238238
239239 if (!memOrder) {
240240 return memOrder;
@@ -251,7 +251,7 @@ makeValidForAction(std::optional<mlir::omp::ClauseMemoryOrderKind> memOrder,
251251 if (action == Analysis::Read) {
252252 // "acq_rel" decays to "acquire"
253253 if (*memOrder == mlir::omp::ClauseMemoryOrderKind::Acq_rel)
254- return mlir::omp::ClauseMemoryOrderKind::Acquire;;
254+ return mlir::omp::ClauseMemoryOrderKind::Acquire;
255255 } else if (action == Analysis::Write) {
256256 // "acq_rel" decays to "release"
257257 if (*memOrder == mlir::omp::ClauseMemoryOrderKind::Acq_rel)
0 commit comments