aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-27 00:55:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:03 -0700
commit14781fa1f7d326f970e075612c5e585b2df8d0ca (patch)
treef6c03daa2331c8be91d8917e3a792cb9edf83e11
parentb22aa7228d7fab35b86cb57a4b33d3826ec7e916 (diff)
downloadsparse-dev-14781fa1f7d326f970e075612c5e585b2df8d0ca.tar.gz
Nonlocal memops are non-determinedly dominated by the entry.
-rw-r--r--flow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/flow.c b/flow.c
index 25c9df23..03ecea65 100644
--- a/flow.c
+++ b/flow.c
@@ -218,6 +218,9 @@ static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn,
{
struct basic_block *parent;
+ if (!bb->parents)
+ return !!local;
+
if (bb_list_size(bb->parents) > 1)
loads = 0;
FOR_EACH_PTR(bb->parents, parent) {