Skip to content

Commit 4c2a7bf

Browse files
committed
Revert "[Constraint solver] Be more careful about NULL parent expression."
This reverts commit 0e269a5.
1 parent 670ff7d commit 4c2a7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ bool MissingConformanceFailure::diagnoseAsAmbiguousOperatorRef() {
680680
// about missing conformance just in case.
681681
auto operatorID = name.getIdentifier();
682682

683-
auto *applyExpr = cast_or_null<ApplyExpr>(findParentExpr(anchor));
683+
auto *applyExpr = cast<ApplyExpr>(findParentExpr(anchor));
684684
if (auto *binaryOp = dyn_cast<BinaryExpr>(applyExpr)) {
685685
auto lhsType = getType(binaryOp->getArg()->getElement(0));
686686
auto rhsType = getType(binaryOp->getArg()->getElement(1));

0 commit comments

Comments
 (0)