diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-10-18 11:06:28 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-10-18 11:06:28 +0000 |
commit | 940c770d279afbbf22491478e60cacfd93783149 (patch) | |
tree | 40ed3bdfe67a6e639a76c8c505e727995f9d9775 /llvm/test/DebugInfo/Mips/dsr-non-fixed-objects.ll | |
parent | f0b4e5db16a81e462db87c4b3d5b52ff1f751b0b (diff) | |
download | bcm5719-llvm-940c770d279afbbf22491478e60cacfd93783149.tar.gz bcm5719-llvm-940c770d279afbbf22491478e60cacfd93783149.zip |
[analyzer] Add NumberObjectConversion checker.
When dealing with objects that represent numbers, such as Objective-C NSNumber,
the language provides little protection from accidentally interpreting
the value of a pointer to such object as the value of the number represented
by the object. Results of such mis-interpretation may be unexpected.
The checker attempts to fill this gap in cases when the code is obviously
incorrect.
With "Pedantic" option enabled, this checker enforces a coding style to
completely prevent errors of this kind (off by default).
Differential Revision: https://reviews.llvm.org/D22968
llvm-svn: 284473
Diffstat (limited to 'llvm/test/DebugInfo/Mips/dsr-non-fixed-objects.ll')
0 files changed, 0 insertions, 0 deletions