aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp')
-rw-r--r--backend/unittests/CodeGen/MachineFunctionRecordsTest.cpp6
1 files changed, 3 insertions, 3 deletions
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");
}
{