Home

Sema: demote invalid atomic ordering message to warning.

Press ? to show keyboard shortcuts.
Committed
tnorthoverMar 11 2014, 4:35 AM
Parents
rL203563: Remove copy ctors that did the same thing as the default one.
Branches
Unknown
Tags
Unknown
Subscribers
None
Projects
None
Description

Sema: demote invalid atomic ordering message to warning.

Someone could write:

if (0) {
  __c11_atomic_load(ptr, memory_order_release);
}

or the equivalent, which is perfectly valid, so we shouldn't outright reject
invalid orderings on purely static grounds.

rdar://problem/16242991

rL203564

cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Loading...

cfe/trunk/lib/Sema/SemaChecking.cpp

Loading...

cfe/trunk/test/Sema/atomic-ops.c

Loading...

Add Comment