]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-devirt.c
ipa-devirt.c (possible_polymorphic_call_targets): Return early if otr_type has no...
[thirdparty/gcc.git] / gcc / ipa-devirt.c
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;