Skip to content

Commit 9abda4a

Browse files
[ConstraintSystem] Removing looking through coercion in getCalleeLocator
1 parent 8862b1b commit 9abda4a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/ConstraintSystem.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,12 +622,6 @@ ConstraintLocator *ConstraintSystem::getCalleeLocator(
622622
if (isExpr<ObjectLiteralExpr>(anchor))
623623
return getConstraintLocator(anchor, ConstraintLocator::ConstructorMember);
624624

625-
if (locator->isLastElement<LocatorPathElt::FunctionArgument>()) {
626-
if (auto *CE = getAsExpr<CoerceExpr>(anchor)) {
627-
return getConstraintLocator(CE->getSubExpr());
628-
}
629-
}
630-
631625
return getConstraintLocator(anchor);
632626
}
633627

0 commit comments

Comments
 (0)