Skip to content

Commit b4c73ab

Browse files
committed
[Diagnostics] Fix MissingConformanceFailure::diagnoseAsError to use solution to retrieve fixes
1 parent a05e072 commit b4c73ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,8 @@ bool MissingConformanceFailure::diagnoseAsError() {
407407
if (auto *binaryOp = dyn_cast_or_null<BinaryExpr>(findParentExpr(anchor))) {
408408
auto *caseExpr = binaryOp->getArg()->getElement(0);
409409

410-
auto &cs = getConstraintSystem();
411410
llvm::SmallPtrSet<Expr *, 4> anchors;
412-
for (const auto *fix : cs.getFixes()) {
411+
for (const auto *fix : getSolution().Fixes) {
413412
if (auto anchor = fix->getAnchor()) {
414413
if (anchor.is<Expr *>())
415414
anchors.insert(getAsExpr(anchor));

0 commit comments

Comments
 (0)