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.
MissingConformanceFailure::diagnoseAsError
1 parent a05e072 commit b4c73abCopy full SHA for b4c73ab
lib/Sema/CSDiagnostics.cpp
@@ -407,9 +407,8 @@ bool MissingConformanceFailure::diagnoseAsError() {
407
if (auto *binaryOp = dyn_cast_or_null<BinaryExpr>(findParentExpr(anchor))) {
408
auto *caseExpr = binaryOp->getArg()->getElement(0);
409
410
- auto &cs = getConstraintSystem();
411
llvm::SmallPtrSet<Expr *, 4> anchors;
412
- for (const auto *fix : cs.getFixes()) {
+ for (const auto *fix : getSolution().Fixes) {
413
if (auto anchor = fix->getAnchor()) {
414
if (anchor.is<Expr *>())
415
anchors.insert(getAsExpr(anchor));
0 commit comments