asan.c (instrument_assignment): Instrument lhs only for gimple_store_p and rhs1 only for gimple_assign_load_p.
* asan.c (instrument_assignment): Instrument lhs only for gimple_store_p and rhs1 only for gimple_assign_load_p. From-SVN: r194087
This commit is contained in:
parent
4a0639a2a9
commit
52f2e7e1e9
|
@ -1,3 +1,8 @@
|
|||
2012-12-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* asan.c (instrument_assignment): Instrument lhs only
|
||||
for gimple_store_p and rhs1 only for gimple_assign_load_p.
|
||||
|
||||
2012-12-03 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
|
||||
|
||||
* Makefile.in: Add target mddump, build/genmddump.o. Extend
|
||||
|
|
|
@ -1339,8 +1339,10 @@ instrument_assignment (gimple_stmt_iterator *iter)
|
|||
|
||||
gcc_assert (gimple_assign_single_p (s));
|
||||
|
||||
if (gimple_store_p (s))
|
||||
instrument_derefs (iter, gimple_assign_lhs (s),
|
||||
gimple_location (s), true);
|
||||
if (gimple_assign_load_p (s))
|
||||
instrument_derefs (iter, gimple_assign_rhs1 (s),
|
||||
gimple_location (s), false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue