8278381: [GCC 11] Address::make_raw() does not initialize rspec

Reviewed-by: phh, xliu
This commit is contained in:
Dan Lutker 2021-12-10 17:52:54 +00:00 committed by Paul Hohensee
parent 8eb453baeb
commit 4f594e6a28
2 changed files with 2 additions and 2 deletions

@ -46,7 +46,7 @@
// Convert the raw encoding form into the form expected by the
// constructor for Address.
Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
RelocationHolder rspec;
RelocationHolder rspec = RelocationHolder::none;
if (disp_reloc != relocInfo::none) {
rspec = Relocation::spec_simple(disp_reloc);
}

@ -186,7 +186,7 @@ Address::Address(address loc, RelocationHolder spec) {
// Address. An index of 4 (rsp) corresponds to having no index, so convert
// that to noreg for the Address constructor.
Address Address::make_raw(int base, int index, int scale, int disp, relocInfo::relocType disp_reloc) {
RelocationHolder rspec;
RelocationHolder rspec = RelocationHolder::none;
if (disp_reloc != relocInfo::none) {
rspec = Relocation::spec_simple(disp_reloc);
}