]> granicus.if.org Git - clang/commit
Sema: produce error when invalid ordering is passed to atomic builtin
authorTim Northover <tnorthover@apple.com>
Tue, 11 Mar 2014 10:49:14 +0000 (10:49 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 11 Mar 2014 10:49:14 +0000 (10:49 +0000)
commit4ca1d8353203363db381c3c58789303b04994ae9
tree3509de020e61630e359c8d96eba04c18d57dd05d
parent4bf1fd08303248ee97a83a57a5bf3da84b4af97c
Sema: produce error when invalid ordering is passed to atomic builtin

This is a conservative check, because it's valid for the expression to be
non-constant, and in cases like that we just don't know whether it's valid.

rdar://problem/16242991

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