aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/InstructionDescriptor.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 22:37:49 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-12 22:37:49 +0800
commit3341938bb644e6fc39afa6a8fcb1306604999e42 (patch)
treea7586c0a8a9d3e7e9dbc8709daf4dd76ca51be5f /backend/lib/CodeGen/InstructionDescriptor.cpp
parent0bb35fa2306a66f1f0baf118619b5c1640ed9c01 (diff)
downloadrcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.gz
rcc-project-3341938bb644e6fc39afa6a8fcb1306604999e42.tar.xz
[RISCV] Split the GlobalISel target components
Diffstat (limited to 'backend/lib/CodeGen/InstructionDescriptor.cpp')
-rw-r--r--backend/lib/CodeGen/InstructionDescriptor.cpp7
1 files changed, 3 insertions, 4 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)) {