aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-05-03 02:13:56 +0000
committerAnna Zaks <ganna@apple.com>2012-05-03 02:13:56 +0000
commite55a14a025c38800d07f1ab0db7dbbe4a2fe1605 (patch)
tree20b0fffd25d47c5636f9cd8c39911820ffcb59bd /lib/Driver/Tools.cpp
parentda3960347a5d563d6746cb363b25466282a09ce3 (diff)
[analyzer] Conjure a symbol to ensure we can identify pointer arithmetic
We need to identify the value of ptr as ElementRegion (result of pointer arithmetic) in the following code. However, before this commit '(2-x)' evaluated to Unknown value, and as the result, 'p + (2-x)' evaluated to Unknown value as well. int *p = malloc(sizeof(int)); ptr = p + (2-x); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions