* ipa-devirt.c (possible_polymorphic_call_targets): Return early
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2014 08:46:56 +0000 (08:46 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Dec 2014 08:46:56 +0000 (08:46 +0000)
if otr_type has no BINFO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218659 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-devirt.c

index d9a4bde..74e3ddc 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 41d4554..9f8dcb5 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;