summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/fuzzing.h')
-rw-r--r--src/tools/fuzzing.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/tools/fuzzing.h b/src/tools/fuzzing.h
index d735e48c9..d6ce27b31 100644
--- a/src/tools/fuzzing.h
+++ b/src/tools/fuzzing.h
@@ -2438,17 +2438,13 @@ private:
auto* ptr = makePointer();
if (oneIn(2)) {
auto* value = make(type);
- return builder.makeAtomicRMW(pick(AtomicRMWOp::Add,
- AtomicRMWOp::Sub,
- AtomicRMWOp::And,
- AtomicRMWOp::Or,
- AtomicRMWOp::Xor,
- AtomicRMWOp::Xchg),
- bytes,
- offset,
- ptr,
- value,
- type);
+ return builder.makeAtomicRMW(
+ pick(RMWAdd, RMWSub, RMWAnd, RMWOr, RMWXor, RMWXchg),
+ bytes,
+ offset,
+ ptr,
+ value,
+ type);
} else {
auto* expected = make(type);
auto* replacement = make(type);