re PR ipa/60665 (gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used uninitialized whenever '?:' condition is false)

PR ipa/60665
	* ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.

From-SVN: r215656
This commit is contained in:
Jan Hubicka 2014-09-27 02:21:33 +02:00 committed by Jan Hubicka
parent ec1d732bc6
commit b2d82f2df1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR ipa/60665
* ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR ipa/62121

View file

@ -2217,7 +2217,7 @@ possible_polymorphic_call_targets (tree otr_type,
unsigned int i;
tree binfo, target;
bool complete;
bool can_refer;
bool can_refer = false;
bool skipped = false;
otr_type = TYPE_MAIN_VARIANT (otr_type);