Sema: produce error when invalid ordering is passed to atomic builtin

Press ? to show keyboard shortcuts.
Committed
tnorthoverMar 11 2014, 3:49 AM
Parents
rL203560: Update for IR: add a second AtomicOrdering to cmpxchg insts.
Branches
Unknown
Tags
Unknown
Description

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

rL203561

cfe/trunk/include/clang/AST/Expr.h

Loading...

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

Loading...

cfe/trunk/lib/CodeGen/CGAtomic.cpp

Loading...

cfe/trunk/lib/Sema/SemaChecking.cpp

Loading...

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

Loading...

cfe/trunk/test/CodeGen/big-atomic-ops.c

Loading...

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

Loading...

Add Comment