]> granicus.if.org Git - clang/commit
[analyzer] Fix a spurious undef value warning.
authorAnna Zaks <ganna@apple.com>
Fri, 1 Jun 2012 23:48:44 +0000 (23:48 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 1 Jun 2012 23:48:44 +0000 (23:48 +0000)
commit183ff2aaacbc1995ed64d5e2ffea4456fd871633
tree814ddd5e5751b32df6ce41e8dad3c16b552688ed
parent144e52be486a3906aec90c51b0ac94a30313152e
[analyzer] Fix a spurious undef value warning.

When we timeout or exceed a max number of blocks within an inlined
function, we retry with no inlining starting from a node right before
the CallEnter node. We assume the state of that node is the state of the
program before we start evaluating the call. However, the node pruning
removes this node as unimportant.

Teach the node pruning to keep the predecessors of the call enter nodes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/ExplodedGraph.cpp
test/Analysis/engine/replay-without-inlining.c [new file with mode: 0644]