mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user