diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:22:37 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:22:37 +0800 |
| commit | 17bc7d48ed0fca872155f1e68428d8d98ba8d16e (patch) | |
| tree | b346554aa704b3dcf82485d10db759aaf17e9d91 /backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp | |
| parent | 88ba4ba8275ce5da4b9c40da0995f941cedcd410 (diff) | |
| download | rcc-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.cpp | 2 |
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, |
