summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-13 16:32:54 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-13 16:32:54 +0000
commit22358bd681703becf3c47e8f550d6662113ea46b (patch)
tree6287bda17b76033124fff5cc27a6d96a05400e96 /clang/lib/CodeGen/CGBlocks.cpp
parentba42e49c14abcb513672efa6cb8579731894764b (diff)
downloadbcm5719-llvm-22358bd681703becf3c47e8f550d6662113ea46b.tar.gz
bcm5719-llvm-22358bd681703becf3c47e8f550d6662113ea46b.zip
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> llvm-svn: 66899
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud