llvm.org GIT mirror llvm / fb9ead0
NFC: disallow comparison of AtomicOrdering Follow-up to D18775 and related clang change. AtomicOrdering is a lattice, 'stronger' is the right thing to do, direct comparison is fraught with peril. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265685 91177308-0d34-0410-b5e6-96231b3b80d8 JF Bastien 3 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5151 AcquireRelease = 6,
5252 SequentiallyConsistent = 7
5353 };
54
55 bool operator<(AtomicOrdering, AtomicOrdering) = delete;
56 bool operator>(AtomicOrdering, AtomicOrdering) = delete;
57 bool operator<=(AtomicOrdering, AtomicOrdering) = delete;
58 bool operator>=(AtomicOrdering, AtomicOrdering) = delete;
5459
5560 /// String used by LLVM IR to represent atomic ordering.
5661 static inline const char *toIRString(AtomicOrdering ao) {