diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-08-17 16:02:45 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-08-17 16:02:45 +0000 |
| commit | 002981baca64d923330af6d77022bdd0bbfaf2c6 (patch) | |
| tree | 7b81b877ca9bd7f2205a0563db4d82934502475b /llvm/lib/IR/Function.cpp | |
| parent | c19dee734f3adfb800f1a9684fe661c827370885 (diff) | |
| download | bcm5719-llvm-002981baca64d923330af6d77022bdd0bbfaf2c6.tar.gz bcm5719-llvm-002981baca64d923330af6d77022bdd0bbfaf2c6.zip | |
[analyzer] Add a checker for loss of sign or precision in integral casts.
This new checker tries to find execution paths on which implicit integral casts
cause definite loss of information: a certainly-negative integer is converted
to an unsigned integer, or an integer is definitely truncated to fit into
a smaller type.
Being implicit, such casts are likely to produce unexpected results.
Patch by Daniel Marjamäki!
Differential Revision: https://reviews.llvm.org/D13126
llvm-svn: 278941
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions

