summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/optimizing/code_generator_riscv64.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/compiler/optimizing/code_generator_riscv64.cc b/compiler/optimizing/code_generator_riscv64.cc
index df40337f51..bd9c811934 100644
--- a/compiler/optimizing/code_generator_riscv64.cc
+++ b/compiler/optimizing/code_generator_riscv64.cc
@@ -1459,13 +1459,15 @@ void LocationsBuilderRISCV64::VisitParameterValue(HParameterValue* instruction)
}
void InstructionCodeGeneratorRISCV64::VisitParameterValue(HParameterValue* instruction) {
- UNUSED(instruction);
- LOG(FATAL) << "Unimplemented";
+ LocationSummary* locations = new (GetGraph()->GetAllocator()) LocationSummary(instruction);
+ for (size_t i = 0, e = locations->GetInputCount(); i < e; ++i) {
+ locations->SetInAt(i, Location::Any());
+ }
+ locations->SetOut(Location::Any());
}
-void LocationsBuilderRISCV64::VisitPhi(HPhi* instruction) {
- UNUSED(instruction);
- LOG(FATAL) << "Unimplemented";
+void LocationsBuilderRISCV64::VisitPhi([[maybe_unused]] HPhi* instruction) {
+ LOG(FATAL) << "Unreachable";
}
void InstructionCodeGeneratorRISCV64::VisitPhi(HPhi* instruction) {