diff options
| -rw-r--r-- | compiler/optimizing/code_generator_riscv64.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator_riscv64.cc b/compiler/optimizing/code_generator_riscv64.cc index bf4a893e22..5f44224438 100644 --- a/compiler/optimizing/code_generator_riscv64.cc +++ b/compiler/optimizing/code_generator_riscv64.cc @@ -2184,13 +2184,13 @@ void InstructionCodeGeneratorRISCV64::VisitLoadException(HLoadException* instruc } void LocationsBuilderRISCV64::VisitLoadMethodHandle(HLoadMethodHandle* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; + InvokeRuntimeCallingConvention calling_convention; + Location loc = Location::RegisterLocation(calling_convention.GetRegisterAt(0)); + CodeGenerator::CreateLoadMethodHandleRuntimeCallLocationSummary(instruction, loc, loc); } void InstructionCodeGeneratorRISCV64::VisitLoadMethodHandle(HLoadMethodHandle* instruction) { - UNUSED(instruction); - LOG(FATAL) << "Unimplemented"; + codegen_->GenerateLoadMethodHandleRuntimeCall(instruction); } void LocationsBuilderRISCV64::VisitLoadMethodType(HLoadMethodType* instruction) { |