* c-typeck.c (same_translation_unit_p): Fix pasto.
authorDiego Novillo <dnovillo@redhat.com>
Tue, 23 Mar 2004 02:24:24 +0000 (02:24 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Tue, 23 Mar 2004 02:24:24 +0000 (21:24 -0500)
From-SVN: r79849

gcc/ChangeLog
gcc/c-typeck.c

index 150c632322d93db6b2dc3ee80c0a9ad7e2dd9830..357407ddb1d919623c238b75cb8a7184ae6fe92a 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 1cfc8039244fe0cfcc35226da4dd386168b1d65f..045b27b791b2ecdb4779700b58805aaf084568f1 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 ();