Remove redundant assignment from dwarf2_find_containing_comp_unit
authorTom Tromey <tromey@adacore.com>
Mon, 11 Mar 2019 16:22:17 +0000 (10:22 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 11 Mar 2019 16:22:17 +0000 (10:22 -0600)
commit82cb27ff6b4e1ae811e72a02dddc3db4c9ff97b8
tree64d9dd9c93392a65fd1dabccf6bef688bc1a05fd
parente7b681f1c62c2fa130adcc4a002f7185d33f7600
Remove redundant assignment from dwarf2_find_containing_comp_unit

dwarf2_find_containing_comp_unit has two assignments to "this_cu" in
quick succession, both of which are just:

  this_cu = dwarf2_per_objfile->all_comp_units[low];

... with no intervening assignments.

This patch removes the second assignment.  I'm checking this in as
obvious.  Tested on x86-64 Fedora 29.

gdb/ChangeLog
2019-03-11  Tom Tromey  <tromey@adacore.com>

* dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
redundant assignment to "this_cu".
gdb/ChangeLog
gdb/dwarf2read.c