aboutsummaryrefslogtreecommitdiff
path: root/backend/unittests/MIR/MIParserTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/unittests/MIR/MIParserTest.cpp')
-rw-r--r--backend/unittests/MIR/MIParserTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/unittests/MIR/MIParserTest.cpp b/backend/unittests/MIR/MIParserTest.cpp
index 60987f4..c35dc74 100644
--- a/backend/unittests/MIR/MIParserTest.cpp
+++ b/backend/unittests/MIR/MIParserTest.cpp
@@ -470,7 +470,7 @@ void testTypedIntegerTruncation(TestContext &Context) {
rcc::mir::MIParser Parser(*Function, *Target, "typed-integer-truncation.mir", Body);
const auto Parsed = Parser.parse();
const auto Instructions = Function->allInstructions();
- const auto *MinusOne = Instructions.size() > 0
+ const auto *MinusOne = !Instructions.empty()
? Instructions[0]->operandAt(1)->getIf<rcc::IntegerImmediateOperand>()
: nullptr;
const auto *NarrowNegative =