Commit 241e298a by Yury Gribov Committed by Yury Gribov

asan.c (build_check_stmt): Fix maybe-uninitialized warning.

2014-06-16  Yury Gribov  <y.gribov@samsung.com>

	* asan.c (build_check_stmt): Fix maybe-uninitialized warning.

From-SVN: r211713
parent 1df2287f
2014-06-16 Yury Gribov <y.gribov@samsung.com>
* asan.c (build_check_stmt): Fix maybe-uninitialized warning.
2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/61522
......
......@@ -1636,6 +1636,13 @@ build_check_stmt (location_t location, tree base, tree len,
gcc_assert (!(size_in_bytes > 0 && !non_zero_len_p));
if (start_instrumented && end_instrumented)
{
if (!before_p)
gsi_next (iter);
return;
}
if (len)
len = unshare_expr (len);
else
......@@ -1735,7 +1742,7 @@ build_check_stmt (location_t location, tree base, tree len,
gsi_insert_after (&gsi, g, GSI_NEW_STMT);
tree base_addr = gimple_assign_lhs (g);
tree t;
tree t = NULL_TREE;
if (real_size_in_bytes >= 8)
{
tree shadow = build_shadow_mem_access (&gsi, location, base_addr,
......
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