Fix ICE in use-after-scope w/ -fno-tree-dce (PR sanitize/79783).
authorMartin Liska <mliska@suse.cz>
Mon, 6 Mar 2017 10:20:33 +0000 (11:20 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 6 Mar 2017 10:20:33 +0000 (10:20 +0000)
commita50a32aa3cbd139b2fbc56bcd80a82dc7f6ca5e5
treecf302d2f084f1a67fbed6c9139a0cc3263e32f40
parent5ada812cedf5c5e4f602c6fc21bfc3744aa2ddcd
Fix ICE in use-after-scope w/ -fno-tree-dce (PR sanitize/79783).

2017-03-06  Martin Liska  <mliska@suse.cz>

PR sanitize/79783
* asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
when having a SSA NAME w/o VAR_DECL assigned to it.
2017-03-06  Martin Liska  <mliska@suse.cz>

PR sanitize/79783
* g++.dg/asan/pr79783.C: New test.

From-SVN: r245912
gcc/ChangeLog
gcc/asan.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr79783.C [new file with mode: 0644]