diff options
Diffstat (limited to 'backend/lib/CodeGen')
| -rw-r--r-- | backend/lib/CodeGen/InstructionDescriptor.cpp | 7 | ||||
| -rw-r--r-- | backend/lib/CodeGen/MachineFunctionCloner.cpp | 3 | ||||
| -rw-r--r-- | backend/lib/CodeGen/MachineVerifier.cpp | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/backend/lib/CodeGen/InstructionDescriptor.cpp b/backend/lib/CodeGen/InstructionDescriptor.cpp index fa00537..2c99939 100644 --- a/backend/lib/CodeGen/InstructionDescriptor.cpp +++ b/backend/lib/CodeGen/InstructionDescriptor.cpp @@ -396,10 +396,9 @@ Expected<void> InstructionSet::validateExplicitOperands(const InstructionDescrip const OperandDescriptor &OperandDesc = descriptorForOperand(Descriptor, *Shape, Index); const auto Validation = validateOperand(OperandDesc, Operand, RegInfo); if (!Validation) { - return makeUnexpected( - Validation.error().code(), - "operand " + std::to_string(Index) + " of '" + Descriptor.Name + "': " + - std::string(Validation.error().message())); + return makeUnexpected(Validation.error().code(), + "operand " + std::to_string(Index) + " of '" + Descriptor.Name + + "': " + std::string(Validation.error().message())); } if (Operand.isRegister()) { if (isDefRole(OperandDesc.RegisterRole)) { diff --git a/backend/lib/CodeGen/MachineFunctionCloner.cpp b/backend/lib/CodeGen/MachineFunctionCloner.cpp index 1a66e66..bbd70b7 100644 --- a/backend/lib/CodeGen/MachineFunctionCloner.cpp +++ b/backend/lib/CodeGen/MachineFunctionCloner.cpp @@ -203,8 +203,7 @@ cloneMemOperand(const MachineMemOperand &SourceOperand, CloneState &State) { return std::unexpected(DestinationReg.error()); if (SourceInfo.Name) { - auto DestinationInfo = - State.Destination.registerInfo().virtualRegisterInfo(*DestinationReg); + auto DestinationInfo = State.Destination.registerInfo().virtualRegisterInfo(*DestinationReg); if (!DestinationInfo) return std::unexpected(DestinationInfo.error()); DestinationInfo->get().Name = SourceInfo.Name; diff --git a/backend/lib/CodeGen/MachineVerifier.cpp b/backend/lib/CodeGen/MachineVerifier.cpp index 3d9fbdb..00be72f 100644 --- a/backend/lib/CodeGen/MachineVerifier.cpp +++ b/backend/lib/CodeGen/MachineVerifier.cpp @@ -30,7 +30,7 @@ namespace rcc { namespace { [[nodiscard]] std::string formatDebugInstruction(const MachineInstr &Instruction, - const TargetDescription &Target) { + const TargetDescription &Target) { const InstructionDescriptor *Descriptor = Target.instructionDescriptor(Instruction.opcode()); std::string Result = Descriptor == nullptr ? "<unknown>" : Descriptor->Name; for (std::size_t Index = 0; Index < Instruction.operandCount(); ++Index) { |
