Make build_check_stmt accept an SSA_NAME for its base
authorDodji Seketeli <dodji@redhat.com>
Mon, 12 Nov 2012 15:52:56 +0000 (15:52 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 12 Nov 2012 15:52:56 +0000 (16:52 +0100)
commitdc29bf1eefe6dcc9c1db8249ac732d55d8a62539
tree180ca989839a55574caee4be09f93e799a6249f4
parent8240018b0c5da12a6e6df5689055983e76768151
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.

From-SVN: r193438
gcc/ChangeLog
gcc/asan.c