diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-20 01:54:35 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-20 01:54:35 +0000 |
commit | 502fc714b05f99a88493fa64e74dc215597f7594 (patch) | |
tree | c6cf636cbf17fd4812e7cefe75f981f6bdec65b8 /gcc/cfgrtl.c | |
parent | 2c38bd087f1e8bb0018ee89b3889dc248f0d3119 (diff) | |
download | gcc-502fc714b05f99a88493fa64e74dc215597f7594.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 9c115ba03ce..fd94a03eed0 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -4166,7 +4166,7 @@ duplicate_insn_chain (rtx from, rtx to) } insn = NEXT_INSN (last); delete_insn (last); - return as_a <rtx_insn *> (insn); + return safe_as_a <rtx_insn *> (insn); } /* Create a duplicate of the basic block BB. */ |