Fix issue with NULL as_a in duplicate_insn_chain
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 20 Aug 2014 01:54:35 +0000 (01:54 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 20 Aug 2014 01:54:35 +0000 (01:54 +0000)
commit7351b44f2526105f11683511a658b5c3be521c4e
treec6cf636cbf17fd4812e7cefe75f981f6bdec65b8
parentbb0ae1d6f23d232551b33097173b20f50b6a16e1
Fix issue with NULL as_a in duplicate_insn_chain

2014-08-20  David Malcolm  <dmalcolm@redhat.com>

* cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
"insn" from an as_a to a safe_as_a, for the case when "insn" is
NULL.

From-SVN: r214207
gcc/ChangeLog
gcc/cfgrtl.c