From 00d0eb85e2fcd42cd933eb41a4e7a425228294fb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 2 Sep 2025 15:28:54 -0400 Subject: [PATCH] Remove redundant if condition after #5971 (#6003) PR #5971 added this same condition as an early-out earlier in the PerformBuiltinConversion function. --- toolchain/check/convert.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolchain/check/convert.cpp b/toolchain/check/convert.cpp index 306f42bd2c4d..a56b508c0827 100644 --- a/toolchain/check/convert.cpp +++ b/toolchain/check/convert.cpp @@ -1100,8 +1100,7 @@ static auto PerformBuiltinConversion( // Type values can convert to facet values, and facet values can convert to // other facet values, as long as they satisfy the required interfaces of the // target `FacetType`. - if (target.type_id != value_type_id && - sem_ir.types().Is(target.type_id) && + if (sem_ir.types().Is(target.type_id) && (sem_ir.types().Is(value_type_id) || sem_ir.types().Is(value_type_id))) { // The value is a type or facet value, so it has a constant value. We get