ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no...
authorJan Hubicka <hubicka@ucw.cz>
Fri, 12 Dec 2014 08:46:56 +0000 (09:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 12 Dec 2014 08:46:56 +0000 (08:46 +0000)
* ipa-devirt.c (possible_polymorphic_call_targets): Return early
if otr_type has no BINFO.

From-SVN: r218659

gcc/ChangeLog
gcc/ipa-devirt.c

index d9a4bded7c5ccbbd3b65ed283dbb1ed891627320..74e3ddc2a3cb941b5bd5d89e2d05efd25bd38452 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-12  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-devirt.c (possible_polymorphic_call_targets): Return early
+       if otr_type has no BINFO.
+
 2014-12-12  Zhenqiang Chen  <zhenqiang.chen@arm.com>
 
        PR rtl-optimization/63917
index 41d4554784d3bfa239da63880e5c6fc53add1a0e..9f8dcb57ceb053ae686ad697ab79a210d8b2eccb 100644 (file)
@@ -2239,7 +2239,7 @@ possible_polymorphic_call_targets (tree otr_type,
 
   /* If ODR is not initialized or the constext is invalid, return empty
      incomplete list.  */
-  if (!odr_hash || context.invalid)
+  if (!odr_hash || context.invalid || !TYPE_BINFO (otr_type))
     {
       if (completep)
        *completep = context.invalid;