summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/vector.c
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] do not crash on cases where an array subscript is an rvalueGeorge Karpenkov2017-12-051-28/+0
| | | | | | | | | | | | | Array subscript is almost always an lvalue, except for a few cases where it is not, such as a subscript into an Objective-C property, or a return from the function. This commit prevents crashing in such cases. Fixes rdar://34829842 Differential Revision: https://reviews.llvm.org/D40584 llvm-svn: 319834
* [analyzer] Fix a crash on logical operators with vectors.Artem Dergachev2017-11-081-0/+28
Do not crash when trying to compute x && y or x || y where x and y are of a vector type. For now we do not seem to properly model operations with vectors. In particular, operations && and || on a pair of vectors are not short-circuit, unlike regular logical operators, so even our CFG is incorrect. Avoid the crash, add respective FIXME tests for later. Differential Revision: https://reviews.llvm.org/D39682 rdar://problem/34317663 llvm-svn: 317700
OpenPOWER on IntegriCloud