aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-11 00:30:14 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-11 00:30:14 +0000
commit59d10a4cbc511b257028cc7ec7520c31981c447b (patch)
treebf898e0b784a59168c08e5115cb1c43f8f250cdf /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent3136a4d5d6f49706e81bec77bdef118ec3122f68 (diff)
downloadllvm-59d10a4cbc511b257028cc7ec7520c31981c447b.zip
llvm-59d10a4cbc511b257028cc7ec7520c31981c447b.tar.gz
llvm-59d10a4cbc511b257028cc7ec7520c31981c447b.tar.bz2
[analyzer] Start fixing modeling of bool based types
This is a follow up for one of the previous diffs https://reviews.llvm.org/D32328. getTypeSize and with getIntWidth are not equivalent for bool (see https://clang.llvm.org/doxygen/ASTContext_8cpp_source.html#l08444), this causes a number of issues (for instance, if APint X representing a bool is created with the wrong bit width then X is not comparable against Min/Max (because of the different bit width), that results in crashes (triggered asserts) inside assume* methods), for examples see the newly added test cases. Test plan: make check-all Differential revision: https://reviews.llvm.org/D35041 llvm-svn: 307604
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions