summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/code_generator_riscv64.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/optimizing/code_generator_riscv64.cc b/compiler/optimizing/code_generator_riscv64.cc
index 524abe63ba..7178561d7a 100644
--- a/compiler/optimizing/code_generator_riscv64.cc
+++ b/compiler/optimizing/code_generator_riscv64.cc
@@ -688,13 +688,14 @@ void InstructionCodeGeneratorRISCV64::VisitExit(HExit* instruction) {
}
void LocationsBuilderRISCV64::VisitFloatConstant(HFloatConstant* instruction) {
- UNUSED(instruction);
- LOG(FATAL) << "Unimplemented";
+ LocationSummary* locations =
+ new (GetGraph()->GetAllocator()) LocationSummary(instruction, LocationSummary::kNoCall);
+ locations->SetOut(Location::ConstantLocation(instruction));
}
-void InstructionCodeGeneratorRISCV64::VisitFloatConstant(HFloatConstant* instruction) {
- UNUSED(instruction);
- LOG(FATAL) << "Unimplemented";
+void InstructionCodeGeneratorRISCV64::VisitFloatConstant(
+ [[maybe_unused]] HFloatConstant* instruction) {
+ // Will be generated at use site.
}
void LocationsBuilderRISCV64::VisitGoto(HGoto* instruction) {