diff mbox

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

Message ID 20141013124457.GA9031@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Oct. 13, 2014, 12:44 p.m. UTC
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.
diff mbox

Patch

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;