From 6a7b083f322f4ac47e58cbf9d4d5fd4d1f6fecd0 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Tue, 11 Aug 2026 17:37:42 +0800 Subject: [MIR] Accept fixed-baseline LLVM syntax --- backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp') diff --git a/backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp b/backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp index 8ca6bf3..621bd21 100644 --- a/backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp +++ b/backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp @@ -301,7 +301,7 @@ void testCrossReferenceFailures(TestContext &Context) { } { - auto Function = createFunction(Context, 13, "unknown-bbid"); + auto Function = createFunction(Context, 13, "dangling-prefetch-target"); if (Function == nullptr) return; rcc::MachineBasicBlock *Block = appendBlock(Context, *Function); @@ -313,8 +313,8 @@ void testCrossReferenceFailures(TestContext &Context) { .CallsiteIndex = 0, }) .has_value() && - !rcc::MachineVerifier::verify(*Function, *Target), - "prefetch targets must reference a live block bb_id"); + rcc::MachineVerifier::verify(*Function, *Target).has_value(), + "prefetch targets may reference a bb_id without a machine block"); } { -- cgit v1.2.3