aboutsummaryrefslogtreecommitdiff
path: root/backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:22:37 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-08-29 00:22:37 +0800
commit17bc7d48ed0fca872155f1e68428d8d98ba8d16e (patch)
treeb346554aa704b3dcf82485d10db759aaf17e9d91 /backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp
parent88ba4ba8275ce5da4b9c40da0995f941cedcd410 (diff)
downloadrcc-project-17bc7d48ed0fca872155f1e68428d8d98ba8d16e.tar.gz
rcc-project-17bc7d48ed0fca872155f1e68428d8d98ba8d16e.tar.xz
[TableGen] Assert normalized MC pseudo operands
Diffstat (limited to 'backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp')
-rw-r--r--backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp b/backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp
index 49ec2a6..ca81085 100644
--- a/backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp
+++ b/backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp
@@ -3,6 +3,7 @@
#include "CodeGenTarget.h"
#include <algorithm>
+#include <cassert>
#include <cstdint>
#include <ranges>
#include <string_view>
@@ -106,6 +107,7 @@ bool CodeGenTarget::normalizeMCPseudoExpansions(NormalizedTargetModel &Result) {
fail(Operand.Range, "MC pseudo fixed immediate must target an immediate operand");
return false;
}
+ assert(Operand.Immediate && "validated MC pseudo operand must contain an immediate");
Normalized.Operands.push_back({
.Kind = NormalizedMCPseudoOperandKind::Immediate,
.Value = 0,