aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/TargetDescription.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/TargetDescription.cpp')
-rw-r--r--backend/lib/CodeGen/TargetDescription.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/backend/lib/CodeGen/TargetDescription.cpp b/backend/lib/CodeGen/TargetDescription.cpp
index ab77965..3701add 100644
--- a/backend/lib/CodeGen/TargetDescription.cpp
+++ b/backend/lib/CodeGen/TargetDescription.cpp
@@ -345,10 +345,10 @@ Expected<void> TargetDescription::validateTargetOperand(const OperandDescriptor
if (!EffectiveClass || !Registers.isSubclass(*EffectiveClass, *Descriptor->RegClass)) {
const std::string ActualClass =
EffectiveClass ? std::to_string(EffectiveClass->value()) : "<none>";
- return makeUnexpected(
- ErrorCode::VerificationError,
- "virtual register class " + ActualClass + " does not satisfy required class " +
- std::to_string(Descriptor->RegClass->value()));
+ return makeUnexpected(ErrorCode::VerificationError,
+ "virtual register class " + ActualClass +
+ " does not satisfy required class " +
+ std::to_string(Descriptor->RegClass->value()));
}
}
return {};
@@ -469,9 +469,9 @@ TargetDescription::validateExplicitOperands(Opcode InstructionOpcode,
auto TargetValidation =
validateTargetOperand(&descriptorForOperand(*Descriptor, Index), Operands[Index], RegInfo);
if (!TargetValidation)
- return std::unexpected(withErrorContext(
- TargetValidation.error(), "operand " + std::to_string(Index) + " of '" +
- Descriptor->Name + "': "));
+ return std::unexpected(
+ withErrorContext(TargetValidation.error(), "operand " + std::to_string(Index) + " of '" +
+ Descriptor->Name + "': "));
}
return {};
}