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

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

Details

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