]> granicus.if.org Git - clang/commit
Re-apply "[analyzer] Model casts to bool differently from other numbers."
authorJordan Rose <jordan_rose@apple.com>
Wed, 1 May 2013 18:19:59 +0000 (18:19 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 1 May 2013 18:19:59 +0000 (18:19 +0000)
commit112344ab7f96cf482bce80530676712c282756d5
tree1a4e467c13803f693d6ed36cb307ee66073f31fa
parentf1d6d1460449da0fc8f4db182ffa0ef6a0038b18
Re-apply "[analyzer] Model casts to bool differently from other numbers."

This doesn't appear to be the cause of the slowdown. I'll have to try a
manual bisect to see if there's really anything there, or if it's just
the bot itself taking on additional load. Meanwhile, this change helps
with correctness.

This changes an assertion and adds a test case, then re-applies r180638,
which was reverted in r180714.

<rdar://problem/13296133> and PR15863

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/SValBuilder.cpp
lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
test/Analysis/bool-assignment.c
test/Analysis/casts.c
test/Analysis/stack-addr-ps.cpp
test/Analysis/stackaddrleak.c
test/Analysis/svalbuilder-logic.c