We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
castToExpr
diagnoseAmbiguity
1 parent df44c4f commit ffca407Copy full SHA for ffca407
lib/Sema/ConstraintSystem.cpp
@@ -4252,12 +4252,12 @@ bool ConstraintSystem::diagnoseAmbiguity(ArrayRef<Solution> solutions) {
4252
if (!anchor)
4253
continue;
4254
4255
- auto it = indexMap.find(castToExpr(anchor));
+ auto it = indexMap.find(anchor);
4256
if (it == indexMap.end())
4257
4258
unsigned index = it->second;
4259
4260
- auto optDepth = getExprDepth(castToExpr(anchor));
+ auto optDepth = getExprDepth(anchor);
4261
if (!optDepth)
4262
4263
unsigned depth = *optDepth;
0 commit comments