diff mbox

[GOOGLE] add more type in lipo type compare

Message ID CAO2gOZVgTJb7hPRfMNmKSDVDWuK0-SALN2x_Nj7kaH5peeH0tg@mail.gmail.com
State New
Headers show

Commit Message

Dehao Chen Dec. 1, 2015, 6:53 p.m. UTC
The following patch can fix an ICE when compiling with LIPO. OK for google-4_9?

Thanks,
Dehao
diff mbox

Patch

Index: gcc/l-ipo.c
===================================================================
--- gcc/l-ipo.c (revision 225685)
+++ gcc/l-ipo.c (working copy)
@@ -731,6 +731,7 @@  lipo_cmp_type (tree t1, tree t2)
     case NULLPTR_TYPE:
       return 1;
     case TEMPLATE_TYPE_PARM:
+    case TEMPLATE_TEMPLATE_PARM:
       return 1;
     default:
       gcc_unreachable ();