Make build_check_stmt accept an SSA_NAME for its base
commit62a9585cf5a14d3230b08c7653db99c5aa53ce87
authorDodji Seketeli <dodji@redhat.com>
Fri, 26 Oct 2012 12:58:17 +0000 (26 12:58 +0000)
committerDodji Seketeli <dodji@seketeli.org>
Fri, 9 Nov 2012 17:03:53 +0000 (9 18:03 +0100)
tree6ab0db770978fbbcc81f326fc4e13ef9522a98b6
parent2257086aced32435e4fd214250761120e6580190
Make build_check_stmt accept an SSA_NAME for its base

This patch makes build_check_stmt accept its memory access parameter
to be an SSA name.  This is useful for a subsequent patch that will
re-use.

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

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

  foo[0] = 1;
}

gcc/
* asan.c (build_check_stmt): Accept the memory access to be
represented by an SSA_NAME.

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