aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-09-27 02:21:33 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-09-27 00:21:33 +0000
commitb2d82f2df1d6b99663181b41aef6b55c86ea8281 (patch)
tree6384cfd7b7e3eb57a42884d7a184736aaa3bfbf7 /gcc
parentec1d732bc6e08ede9c33029347d0568ca310531f (diff)
downloadgcc-b2d82f2df1d6b99663181b41aef6b55c86ea8281.zip
gcc-b2d82f2df1d6b99663181b41aef6b55c86ea8281.tar.gz
gcc-b2d82f2df1d6b99663181b41aef6b55c86ea8281.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-devirt.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 203e1f5..2c41697 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c
index cbc9dd5..dc47e99 100644
--- a/gcc/ipa-devirt.c
+++ b/gcc/ipa-devirt.c
@@ -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);