Skip to content

Commit ffca407

Browse files
committed
[ConstraintSystem] NFC: Remove unnecessary castToExpr from diagnoseAmbiguity
1 parent df44c4f commit ffca407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4252,12 +4252,12 @@ bool ConstraintSystem::diagnoseAmbiguity(ArrayRef<Solution> solutions) {
42524252
if (!anchor)
42534253
continue;
42544254

4255-
auto it = indexMap.find(castToExpr(anchor));
4255+
auto it = indexMap.find(anchor);
42564256
if (it == indexMap.end())
42574257
continue;
42584258
unsigned index = it->second;
42594259

4260-
auto optDepth = getExprDepth(castToExpr(anchor));
4260+
auto optDepth = getExprDepth(anchor);
42614261
if (!optDepth)
42624262
continue;
42634263
unsigned depth = *optDepth;

0 commit comments

Comments
 (0)