Fix typo in type verification.
authorFeng Xue <fxue@os.amperecomputing.com>
Tue, 21 Dec 2021 08:48:16 +0000 (09:48 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 23 Dec 2021 08:22:06 +0000 (09:22 +0100)
PR ipa/103786

gcc/ChangeLog:

* tree.c (verify_type): Fix typo.

gcc/tree.c

index 72cceda..0741e3b 100644 (file)
@@ -13530,7 +13530,7 @@ verify_type (const_tree t)
   tree ct = TYPE_CANONICAL (t);
   if (!ct)
     ;
-  else if (TYPE_CANONICAL (t) != ct)
+  else if (TYPE_CANONICAL (ct) != ct)
     {
       error ("%<TYPE_CANONICAL%> has different %<TYPE_CANONICAL%>");
       debug_tree (ct);