@@ -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.
@@ -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))
{