gdb: small simplification in dwarf2_locexpr_baton_eval
authorAndrew Burgess <aburgess@redhat.com>
Wed, 16 Mar 2022 15:32:50 +0000 (15:32 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Sun, 3 Apr 2022 16:18:20 +0000 (17:18 +0100)
commit22480d7c3977df6a111a1c1ab56982372732f4e5
treee6bf10d7b7fbf3d2f1418f3ad183f8b308d20ac7
parent5187219460cd1ba877c555a67adb283c7a2f0d25
gdb: small simplification in dwarf2_locexpr_baton_eval

While examining the dwarf expression evaluator, I noticed that in
dwarf2_locexpr_baton_eval, whenever push_initial_value is true, the
addr_stack will never be nullptr.

This allows for a small cleanup, replacing an if/then/else with an
assertion.

There should be no user visible changes after this commit.
gdb/dwarf2/loc.c