[analyzer] Relax the assert used when traversing the node graph.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 23 Feb 2018 23:26:57 +0000 (23:26 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 23 Feb 2018 23:26:57 +0000 (23:26 +0000)
commit60c206e0bd70332630389b86ead1634368a720a8
tree2409246dd5bb60ba2a307b004a33a05d15ddb00e
parente15451a9c04fa977a4911ca144904293e13e4326
[analyzer] Relax the assert used when traversing the node graph.

The assertion gets exposed when changing the exploration order.
This is a quick hacky fix, but the intention is that if the nodes do
merge, it should not matter which predecessor should be traverse.
A proper fix would be not to traverse predecessors at all, as all
information relevant for any decision should be avilable locally.

rdar://37540480

Differential Revision: https://reviews.llvm.org/D42773

llvm-svn: 325977
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
clang/test/Analysis/exploration_order/noexprcrash.c [new file with mode: 0644]