Fix handling of stores in modref_summary::useful_p

* ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
This commit is contained in:
Jan Hubicka 2020-09-27 23:44:15 +02:00
parent a4b31d5807
commit e24817aa7a
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ modref_summary::useful_p (int ecf_flags)
return true;
if (ecf_flags & ECF_PURE)
return false;
return stores && !loads->every_base;
return stores && !stores->every_base;
}
/* Dump A to OUT. */