]> granicus.if.org Git - clang/commit
[analyzer] Avoid crash when attempting to evaluate binary operation on LazyCompoundVal.
authorDevin Coughlin <dcoughlin@apple.com>
Mon, 8 Feb 2016 00:28:24 +0000 (00:28 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Mon, 8 Feb 2016 00:28:24 +0000 (00:28 +0000)
commiteb8ffd99ee97b7ff8ca7920ced168a2e61c67762
tree778c342915da4f88456dd7550efc40961ea3134a
parent8e361afc20450d8ad51448996e0c58957abb2820
[analyzer] Avoid crash when attempting to evaluate binary operation on LazyCompoundVal.

Instead, return UnknownValue if either operand is a nonloc::LazyCompoundVal. This is a
spot fix for PR 24951.

rdar://problem/23682244

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/SValBuilder.cpp
test/Analysis/string.c