diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-17 13:11:07 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-09-17 13:11:07 -0400 |
commit | 461464f22632163209937ba5128d1f9f32554ea3 (patch) | |
tree | aedb5efa545c00cbab381b348794437ce92b0c67 /gdb/rs6000-tdep.c | |
parent | 04e2a1829ea137ac23ac96e98fd60f9d720dcdcb (diff) | |
download | gdb-461464f22632163209937ba5128d1f9f32554ea3.zip gdb-461464f22632163209937ba5128d1f9f32554ea3.tar.gz gdb-461464f22632163209937ba5128d1f9f32554ea3.tar.bz2 |
Fix use-after-move in compile/compile-cplus-types.c
Patch
d82b3862f12 ("compile: Remove non-const reference parameters")
introduced a regression in compile/compile-cplus-types.c. The new_scope
variable in compile_cplus_instance::enter_scope is used after it was
std::moved. This patch fixes it by referring to the back of the vector
where it was moved instead.
gdb/ChangeLog:
* compile/compile-cplus-types.c
(compile_cplus_instance::enter_scope): Don't use new_scope after
std::move.
Diffstat (limited to 'gdb/rs6000-tdep.c')
0 files changed, 0 insertions, 0 deletions