[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)
commit480a0c00ca51d909a925120737b71289cbb79eda
tree210b82bfd5b8231de0512144f936d10f30cf5012
parentf1d54eb222d3b1dba50643473d4c77ea0f026915
[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

llvm-svn: 260066
clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
clang/test/Analysis/string.c