summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-11-03 13:09:22 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2014-11-03 13:09:22 -0500
commit4e9f69f14fd12ce24871ab9affcae615226afde1 (patch)
tree7c40ee6a9cf0003e6c17450d0279cfe4532a4bf5 /gcc
parent728c8412e55a26649b1fad964aafa61a1fad3718 (diff)
downloadgcc-4e9f69f14fd12ce24871ab9affcae615226afde1.tar.gz
tree-nested: Use gassign
gcc/ChangeLog.gimple-classes: * tree-nested.c (convert_local_reference_stmt): Add a checked cast within case GIMPLE_ASSIGN.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.gimple-classes5
-rw-r--r--gcc/tree-nested.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog.gimple-classes b/gcc/ChangeLog.gimple-classes
index 7834eb04149..6b0d704a576 100644
--- a/gcc/ChangeLog.gimple-classes
+++ b/gcc/ChangeLog.gimple-classes
@@ -1,5 +1,10 @@
2014-11-03 David Malcolm <dmalcolm@redhat.com>
+ * tree-nested.c (convert_local_reference_stmt): Add a checked
+ cast within case GIMPLE_ASSIGN.
+
+2014-11-03 David Malcolm <dmalcolm@redhat.com>
+
* tree-eh.c (stmt_could_throw_1_p): Add checked casts.
(sink_clobbers): Add checked cast.
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c
index 50d787366d7..a06b51a10d3 100644
--- a/gcc/tree-nested.c
+++ b/gcc/tree-nested.c
@@ -2066,7 +2066,7 @@ convert_local_reference_stmt (gimple_stmt_iterator *gsi, bool *handled_ops_p,
case GIMPLE_ASSIGN:
if (gimple_clobber_p (stmt))
{
- tree lhs = gimple_assign_lhs (stmt);
+ tree lhs = gimple_assign_lhs (as_a <gassign *> (stmt));
if (!use_pointer_in_frame (lhs)
&& lookup_field_for_decl (info, lhs, NO_INSERT))
{