Skip to content

Commit 00d0eb8

Browse files
authored
Remove redundant if condition after #5971 (#6003)
PR #5971 added this same condition as an early-out earlier in the PerformBuiltinConversion function.
1 parent b5d86fd commit 00d0eb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

toolchain/check/convert.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,7 @@ static auto PerformBuiltinConversion(
11001100
// Type values can convert to facet values, and facet values can convert to
11011101
// other facet values, as long as they satisfy the required interfaces of the
11021102
// target `FacetType`.
1103-
if (target.type_id != value_type_id &&
1104-
sem_ir.types().Is<SemIR::FacetType>(target.type_id) &&
1103+
if (sem_ir.types().Is<SemIR::FacetType>(target.type_id) &&
11051104
(sem_ir.types().Is<SemIR::TypeType>(value_type_id) ||
11061105
sem_ir.types().Is<SemIR::FacetType>(value_type_id))) {
11071106
// The value is a type or facet value, so it has a constant value. We get

0 commit comments

Comments
 (0)