Fix typo in type verification.

Message ID 039fcfaf-9b00-c0f9-1556-a6c9a98e4e42@suse.cz
State New
Headers
Series Fix typo in type verification. |

Commit Message

Martin Liška Dec. 22, 2021, 12:03 p.m. UTC
  Hello.

The patch is quite obvious fix.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

	PR ipa/103786

gcc/ChangeLog:

	* tree.c (verify_type): Fix typo.
---
  gcc/tree.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Richard Biener Dec. 22, 2021, 4:06 p.m. UTC | #1
On December 22, 2021 1:03:18 PM GMT+01:00, "Martin Liška" <mliska@suse.cz> wrote:
>Hello.
>
>The patch is quite obvious fix.
>
>Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
>Ready to be installed?

Ok. 

Richard. 

>Thanks,
>Martin
>
>	PR ipa/103786
>
>gcc/ChangeLog:
>
>	* tree.c (verify_type): Fix typo.
>---
>  gcc/tree.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/gcc/tree.c b/gcc/tree.c
>index 72cceda568f..0741e3b01af 100644
>--- a/gcc/tree.c
>+++ b/gcc/tree.c
>@@ -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);
  

Patch

diff --git a/gcc/tree.c b/gcc/tree.c
index 72cceda568f..0741e3b01af 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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);