This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix bootstrap/63496 (pasto in ipa-polymorphic-call-context.c)


Hi,
this patch fixes pasto in ipa-polymorphic-call.c. Of course I was not intending to compare
offset+64 with offset ;)

Honza

	PR bootstrap/63496
	* ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
Index: ipa-polymorphic-call.c
===================================================================
--- ipa-polymorphic-call.c	(revision 216141)
+++ ipa-polymorphic-call.c	(working copy)
@@ -1235,7 +1235,7 @@ extr_type_from_vtbl_ptr_store (gimple st
 	  if (dump_file)
 	    fprintf (dump_file, "    wrong offset %i!=%i or size %i\n",
 		     (int)offset, (int)tci->offset, (int)size);
-	  return offset + GET_MODE_BITSIZE (Pmode) <= offset
+	  return offset + GET_MODE_BITSIZE (Pmode) <= tci->offset
 	         || (max_size != -1
 		     && tci->offset + GET_MODE_BITSIZE (Pmode) > offset + max_size)
 		 ? error_mark_node : NULL;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]