Fix error from previous patch where tosize and tovalue were redefined
authorCary Coutant <ccoutant@google.com>
Tue, 30 Sep 2014 23:06:50 +0000 (16:06 -0700)
committerCary Coutant <ccoutant@google.com>
Tue, 30 Sep 2014 23:06:50 +0000 (16:06 -0700)
in a block, shadowing the declarations outside the block.

gold/
PR gold/17432
* resolve.cc (Symbol_table::resolve): Fix local shadowing error.

gold/ChangeLog
gold/resolve.cc

index 20f84af51aff1bb6215434580b48dd92c8d4acba..f636afa890b8e894eba640e41912adba35491c72 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-30  Cary Coutant  <ccoutant@google.com>
+
+       PR gold/17432
+       * resolve.cc (Symbol_table::resolve): Fix local shadowing error.
+
 2014-09-30  Kito Cheng  <kito@0xlab.org>
 
        PR gold/13597
index 52dae8b9994916177707cdca46d7d021a0f62b94..07dff4ada673c9b7bdcbb60154dc74e153cb7b94 100644 (file)
@@ -317,8 +317,8 @@ Symbol_table::resolve(Sized_symbol<size>* to,
          if (to->is_common() && !is_ordinary && st_shndx == elfcpp::SHN_COMMON)
            {
              adjust_common = true;
-             typename Sized_symbol<size>::Size_type tosize = to->symsize();
-             typename Sized_symbol<size>::Value_type tovalue = to->value();
+             tosize = to->symsize();
+             tovalue = to->value();
            }
          this->override(to, sym, st_shndx, is_ordinary, object, version);
          if (adjust_common)