diff options
Diffstat (limited to 'gcc/gimple-range.cc')
-rw-r--r-- | gcc/gimple-range.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc index 6b7d4da..e91eeb4 100644 --- a/gcc/gimple-range.cc +++ b/gcc/gimple-range.cc @@ -200,7 +200,12 @@ gimple_ranger::range_on_exit (vrange &r, basic_block bb, tree name) // If this is not the definition block, get the range on the last stmt in // the block... if there is one. if (def_bb != bb) - s = last_nondebug_stmt (bb); + { + if (bb->flags & BB_RTL) + s = NULL; + else + s = last_nondebug_stmt (bb); + } // If there is no statement provided, get the range_on_entry for this block. if (s) range_of_expr (r, name, s); |