Skip to content

Commit b972997

Browse files
author
Andrew Haley
committed
8326974: ODR violation in macroAssembler_aarch64.cpp
Reviewed-by: adinn, shade, gli
1 parent 437cf35 commit b972997

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,13 @@ static bool offset_for(uint32_t insn1, uint32_t insn2, ptrdiff_t &byte_offset) {
392392
return false;
393393
}
394394

395-
class Decoder : public RelocActions {
396-
virtual reloc_insn adrpMem() { return &Decoder::adrpMem_impl; }
397-
virtual reloc_insn adrpAdd() { return &Decoder::adrpAdd_impl; }
398-
virtual reloc_insn adrpMovk() { return &Decoder::adrpMovk_impl; }
395+
class AArch64Decoder : public RelocActions {
396+
virtual reloc_insn adrpMem() { return &AArch64Decoder::adrpMem_impl; }
397+
virtual reloc_insn adrpAdd() { return &AArch64Decoder::adrpAdd_impl; }
398+
virtual reloc_insn adrpMovk() { return &AArch64Decoder::adrpMovk_impl; }
399399

400400
public:
401-
Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
401+
AArch64Decoder(address insn_addr, uint32_t insn) : RelocActions(insn_addr, insn) {}
402402

403403
virtual int loadStore(address insn_addr, address &target) {
404404
intptr_t offset = Instruction_aarch64::sextract(_insn, 23, 5);
@@ -494,7 +494,7 @@ class Decoder : public RelocActions {
494494
};
495495

496496
address MacroAssembler::target_addr_for_insn(address insn_addr, uint32_t insn) {
497-
Decoder decoder(insn_addr, insn);
497+
AArch64Decoder decoder(insn_addr, insn);
498498
address target;
499499
decoder.run(insn_addr, target);
500500
return target;

0 commit comments

Comments
 (0)