Commit 33960e2e by Tristan Gingold Committed by Tristan Gingold

tree-ssa-strlen.c (get_string_length): Convert lhs if needed.

2012-05-15  Tristan Gingold  <gingold@adacore.com>

      * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.

From-SVN: r187507
parent e7834f95
2012-05-15 Tristan Gingold <gingold@adacore.com>
* tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
2012-05-15 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_set_modified): Move ...
......@@ -26,7 +30,7 @@
* doc/md.texi (fma): Define to only be applicable for single
rounding.
2012-05-14 Uros Bizjak <ubizjak@gmail.com>
PR target/46098
......
......@@ -427,6 +427,12 @@ get_string_length (strinfo si)
NULL);
add_referenced_var (lhs_var);
tem = gimple_call_arg (stmt, 0);
if (!ptrofftype_p (TREE_TYPE (lhs)))
{
lhs = convert_to_ptrofftype (lhs);
lhs = force_gimple_operand_gsi (&gsi, lhs, true, NULL_TREE,
true, GSI_SAME_STMT);
}
lenstmt
= gimple_build_assign_with_ops (POINTER_PLUS_EXPR,
make_ssa_name (lhs_var, NULL),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment