Skip to content

Commit 08561d2

Browse files
committed
format
1 parent 60b2f04 commit 08561d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flang/lib/Lower/OpenMP/Atomic.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ getAtomicMemoryOrder(semantics::SemanticsContext &semaCtx,
231231
static std::optional<mlir::omp::ClauseMemoryOrderKind>
232232
makeValidForAction(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

Comments
 (0)