Fix ICE in dump_pred_graph
authorMarek Polacek <polacek@redhat.com>
Mon, 2 May 2016 07:42:06 +0000 (07:42 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 2 May 2016 07:42:06 +0000 (07:42 +0000)
commit6b9933b9b483b37bbed0a83e6631fff8de14a1f8
tree9ece23c236f61bd2b0b2818def00a7ee4cd29a4c
parent3eaec285927dd8a5ab5f92d90ba5ad45be1f08a4
Fix ICE in dump_pred_graph

2016-05-02  Marek Polacek  <polacek@redhat.com>
    Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/70700
* tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
bigger than FIRST_REF_NODE.

* gcc.dg/pr70700.c: New test.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>
From-SVN: r235700
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr70700.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c