]> granicus.if.org Git - clang/commit
Sema: demote invalid atomic ordering message to warning.
authorTim Northover <tnorthover@apple.com>
Tue, 11 Mar 2014 11:35:10 +0000 (11:35 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 11 Mar 2014 11:35:10 +0000 (11:35 +0000)
commit7533ae94377aed5aa7866ebd67cbcf616efabb3c
tree3f34f4e56a1b175c57d56ebecf6d0ffc75167052
parentff4bb588943f0bf05c17415b7e440a81f73bbce7
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203564 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/atomic-ops.c