summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/atomic-compare.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wlogical-not-parentheses to work better with C code.Richard Trieu2015-08-191-1/+1
| | | | | | | Remove the assumption of a Boolean type by checking if an expression is known to have a boolean value. Disable warning in two other tests. llvm-svn: 245507
* [Sema] Don't use dyn_cast to detect an AtomicTypeDavid Majnemer2015-05-231-0/+5
| | | | | | | | | | An AtomicType might be hidden behind arbitrary levels of typedefs. getAs<> will reliably walk through the sugar to get the underlying AtomicType. This fixes PR23638. llvm-svn: 238083
* Sema: Handle C11 atomics when diagnosing out of range comparisonsJustin Bogner2014-07-211-0/+21
This fixes a couple of asserts when analyzing comparisons involving C11 atomics that were uncovered by r205608 when we extended the applicability of -Wtautological-constant-out-of-range-compare. llvm-svn: 213573
OpenPOWER on IntegriCloud