]> granicus.if.org Git - clang/commit
Pointers casted as integers still count as locations to SimpleSValuator, so don't...
authorJordy Rose <jediknil@belkadan.com>
Wed, 30 Jun 2010 01:35:20 +0000 (01:35 +0000)
committerJordy Rose <jediknil@belkadan.com>
Wed, 30 Jun 2010 01:35:20 +0000 (01:35 +0000)
commita274148a5cf85f758e469d5785fb72736f93f58b
tree3d236faebdb6b21c0d159d9338fe4da8a8c1ff16
parente9c9d15ef9429257136564c5bab76dbe286e37c7
Pointers casted as integers still count as locations to SimpleSValuator, so don't crash if we do a funny thing like ((int)ptr)&1. Fixes PR7527.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Checker/SimpleSValuator.cpp
test/Analysis/ptr-arith.c