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