From 76d89700953ddd81cf31ab8f260eddf67e93aa85 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Fri, 7 Aug 2026 01:27:41 +0800 Subject: [MIR] Complete document parsing and printing Implement the single LLVM-compatible MIR document path with structured\nembedded-IR references, YAML mappings, constants, and deterministic printing.\n\nKeep pointer LLT widths DataLayout-derived, reject layout-dependent output\nwhen embedded IR is omitted, and record the fixed-baseline compatibility\ncontract and regression coverage. --- backend/unittests/CodeGen/MachineFrameInfoTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/unittests/CodeGen/MachineFrameInfoTest.cpp') diff --git a/backend/unittests/CodeGen/MachineFrameInfoTest.cpp b/backend/unittests/CodeGen/MachineFrameInfoTest.cpp index c67339d..78987c0 100644 --- a/backend/unittests/CodeGen/MachineFrameInfoTest.cpp +++ b/backend/unittests/CodeGen/MachineFrameInfoTest.cpp @@ -109,7 +109,8 @@ void testInvalidDescriptions(TestContext &Context) { "fixed-size stack object must reject a missing size"); auto ZeroSize = fixedObject(0, 1); - Context.expect(!Frame.createObject(ZeroSize), "fixed-size stack object must reject zero size"); + Context.expect(Frame.createObject(ZeroSize).has_value(), + "fixed-size stack objects must preserve LLVM MIR zero-sized objects"); rcc::StackObjectDesc InvalidVariable; InvalidVariable.Kind = rcc::StackObjectKind::DynamicAlloca; -- cgit v1.2.3