Skip to content

Commit

Permalink
Update constraints of GNU atomicExchange to match DigitalMars
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Feb 3, 2024
1 parent a6f1083 commit 3fd23a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion druntime/src/core/internal/atomic.d
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ else version (GNU)
}

T atomicExchange(MemoryOrder order = MemoryOrder.seq, bool result = true, T)(T* dest, T value) pure nothrow @nogc @trusted
if (is(T : ulong) || is(T == class) || is(T == interface) || is(T U : U*))
if (CanCAS!T)
{
static assert(order != MemoryOrder.acq, "Invalid MemoryOrder for atomicExchange()");

Expand Down

0 comments on commit 3fd23a8

Please sign in to comment.