From aca862ceffa68c39840c6da6b91d9a9acc044a4a Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 19 Dec 2024 23:18:59 -0800 Subject: [PATCH] Fix a clang-tidy issue (#4723) --- toolchain/check/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/check/context.cpp b/toolchain/check/context.cpp index a0d7d9bd744e..193cb52e999f 100644 --- a/toolchain/check/context.cpp +++ b/toolchain/check/context.cpp @@ -879,7 +879,7 @@ auto Context::InsertHere(SemIR::ExprRegionId region_id) -> SemIR::InstId { if (region.block_ids.size() == 1) { // TODO: Is it possible to avoid leaving an "orphan" block in the IR in the // first two cases? - if (exit_block.size() == 0) { + if (exit_block.empty()) { return region.result_id; } if (exit_block.size() == 1) {