diff options
Diffstat (limited to 'backend')
| -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, |
