OSDN Git Service

* c-typeck.c (same_translation_unit_p): Fix pasto.
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2004 02:24:24 +0000 (02:24 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2004 02:24:24 +0000 (02:24 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79849 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-typeck.c

index 150c632..357407d 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-22  Diego Novillo  <dnovillo@redhat.com>
+
+       * c-typeck.c (same_translation_unit_p): Fix pasto.
+
 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
 
        * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
index 1cfc803..045b27b 100644 (file)
@@ -633,7 +633,7 @@ same_translation_unit_p (tree t1, tree t2)
   while (t2 && TREE_CODE (t2) != TRANSLATION_UNIT_DECL)
     switch (TREE_CODE_CLASS (TREE_CODE (t2)))
       {
-      case 'd': t2 = DECL_CONTEXT (t1); break;
+      case 'd': t2 = DECL_CONTEXT (t2); break;
       case 't': t2 = TYPE_CONTEXT (t2); break;
       case 'b': t2 = BLOCK_SUPERCONTEXT (t2); break;
       default: abort ();