diff mbox

[mem-ref2] Adjust i386.c INDIRECT_REF use

Message ID alpine.LNX.2.00.1006251633510.1429@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener June 25, 2010, 2:34 p.m. UTC
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2010-06-25  Richard Guenther  <rguenther@suse.de>

	* config/i386/i386.c (ix86_canonical_va_list_type): Replace
	INDIRECT_REF handling with MEM_REF.
diff mbox

Patch

Index: gcc/config/i386/i386.c
===================================================================
--- gcc/config/i386/i386.c	(revision 161369)
+++ gcc/config/i386/i386.c	(working copy)
@@ -30580,7 +30580,7 @@  ix86_canonical_va_list_type (tree type)
   tree wtype, htype;
 
   /* Resolve references and pointers to va_list type.  */
-  if (INDIRECT_REF_P (type))
+  if (TREE_CODE (type) == MEM_REF)
     type = TREE_TYPE (type);
   else if (POINTER_TYPE_P (type) && POINTER_TYPE_P (TREE_TYPE(type)))
     type = TREE_TYPE (type);