Factorize condition insertion code out of build_check_stmt
commitc6611936b722be2a1a4132af3b56d4ecbb306bb9
authorDodji Seketeli <dodji@redhat.com>
Fri, 26 Oct 2012 12:58:28 +0000 (26 12:58 +0000)
committerDodji Seketeli <dodji@seketeli.org>
Fri, 9 Nov 2012 17:03:54 +0000 (9 18:03 +0100)
tree0687d700178309a15a2727f04707cf0554e2a05d
parent62a9585cf5a14d3230b08c7653db99c5aa53ce87
Factorize condition insertion code out of build_check_stmt

This patch splits a new create_cond_insert_point_before_iter function
out of build_check_stmt, to be used by a later patch.

Tested by running cc1 -fasan on the test program below with and
without the patch and by inspecting the gimple output to see that
there is no change.

void
foo ()
{
  char foo[1] = {0};

  foo[0] = 1;
}

gcc/

* asan.c (create_cond_insert_point_before_iter): Factorize out of ...
(build_check_stmt): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/asan@192844 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.asan
gcc/asan.c