From 17bc7d48ed0fca872155f1e68428d8d98ba8d16e Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 29 Aug 2026 00:22:37 +0800 Subject: [TableGen] Assert normalized MC pseudo operands --- backend/utils/TableGen/Common/CodeGenMCPseudoLowering.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/utils/TableGen/Common') 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 +#include #include #include #include @@ -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, -- cgit v1.2.3