8278381: [GCC 11] Address::make_raw() does not initialize rspec
Reviewed-by: phh, xliu
This commit is contained in:
parent
8eb453baeb
commit
4f594e6a28
src/hotspot/cpu
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user