diff options
author | Anna Zaks <ganna@apple.com> | 2013-04-03 19:28:12 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-04-03 19:28:12 +0000 |
commit | c1bef5671e682de5a573c7c6b66871b36de0ec61 (patch) | |
tree | 5fa0fc1ee15aac245797201084c987195bcc7090 /lib/Frontend/MultiplexConsumer.cpp | |
parent | 3d3fb9078f0112fa51d8d9862221f5544c5c80e7 (diff) |
[analyzer] Properly handle the ternary operator in trackNullOrUndefValue
1) Look for the node where the condition expression is live when checking if
it is constrained to true or false.
2) Fix a bug in ProgramState::isNull, which was masking the problem. When
the expression is not a symbol (,which is the case when it is Unknown) return
unconstrained value, instead of value constrained to “false”!
(Thankfully other callers of isNull have not been effected by the bug.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/MultiplexConsumer.cpp')
0 files changed, 0 insertions, 0 deletions