diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-12-10 18:18:06 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-12-10 18:18:06 +0000 |
| commit | 60bd88d34135aa2c4996160259e91354b2e06e6d (patch) | |
| tree | 40e5935c6ad6777a94b7dacd5888813f77a889d5 /llvm/lib | |
| parent | 8d96c803dfbbffa94522f4ceb51f2d500263a6fb (diff) | |
| download | bcm5719-llvm-60bd88d34135aa2c4996160259e91354b2e06e6d.tar.gz bcm5719-llvm-60bd88d34135aa2c4996160259e91354b2e06e6d.zip | |
[analyzer] Extend IdenticalExprChecker to check ternary operator results.
Warn if both result expressions of a ternary operator (? :) are the same.
Because only one of them will be executed, this warning will fire even if
the expressions have side effects.
Patch by Anders Rönnholm and Per Viberg!
llvm-svn: 196937
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

