aboutsummaryrefslogtreecommitdiff
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2014-09-30 16:06:50 -0700
committerCary Coutant <ccoutant@google.com>2014-09-30 16:06:50 -0700
commitdb4c959472b3a8f82cfb67d2532ba22f44ab98da (patch)
treef454a6190711aaeb90bada2addd2e5be991a56c5 /gold/resolve.cc
parentcd6da0366dc6684d32f349b729b5558258fc3af4 (diff)
downloadgdb-db4c959472b3a8f82cfb67d2532ba22f44ab98da.zip
gdb-db4c959472b3a8f82cfb67d2532ba22f44ab98da.tar.gz
gdb-db4c959472b3a8f82cfb67d2532ba22f44ab98da.tar.bz2
Fix error from previous patch where tosize and tovalue were redefined
in a block, shadowing the declarations outside the block. gold/ PR gold/17432 * resolve.cc (Symbol_table::resolve): Fix local shadowing error.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index 52dae8b..07dff4a 100644
--- a/gold/resolve.cc
+++ b/gold/resolve.cc
@@ -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)