PR tree-optimization/82977
* tree-ssa-strlen.c (strlen_optimize_stmt): Pass a reference to a copy
constructed temporary to strlen_to_stridx.put.
From-SVN: r254757
+2017-11-15 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/82977
+ * tree-ssa-strlen.c (strlen_optimize_stmt): Pass a reference to a copy
+ constructed temporary to strlen_to_stridx.put.
+
2017-11-15 Martin Liska <mliska@suse.cz>
* configure.ac: Remove -fkeep-inline-functions from coverage_flags.
tree rhs1 = gimple_assign_rhs1 (stmt);
if (stridx_strlenloc *ps = strlen_to_stridx.get (rhs1))
- strlen_to_stridx.put (lhs, *ps);
+ strlen_to_stridx.put (lhs, stridx_strlenloc (*ps));
}
else if (TREE_CODE (lhs) != SSA_NAME && !TREE_SIDE_EFFECTS (lhs))
{