diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-13 16:32:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-13 16:32:54 +0000 |
commit | 6ae8a3600656c478d27f25639bed765f4fe71732 (patch) | |
tree | 72e6c24e666270695621194acb6c5dd04f070937 /lib/CodeGen/CGBlocks.cpp | |
parent | d8eb456289a81728f9aac77ac0a4db0ea9cc231a (diff) |
Add a hack in the analyzer to recover some path-sensitivity at branch
conditions. Currently the analyzer does not reason well about
promotions/truncations of symbolic values, so at branch conditions when we see:
if (condition)
and condition is something like a 'short' or 'char', essentially ignore the
promotion to 'int' so that we track constraints on the original symbolic value.
We only ignore the casts if the underlying type has the same or fewer bits as
the converted type.
This fixes:
<rdar://problem/6619921>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions