[NFC] Strip EditorPlaceholderExpr of its TypeLoc

This commit is contained in:
Robert Widmann
2020-04-25 20:04:24 -07:00
parent 19ab68db98
commit f9a506d799
6 changed files with 45 additions and 59 deletions

View File

@@ -1562,7 +1562,7 @@ private:
PlaceholderFinder Finder(E->getStartLoc(), Found);
E->walk(Finder);
if (Found) {
if (auto TR = Found->getTypeLoc().getTypeRepr()) {
if (auto TR = Found->getPlaceholderTypeRepr()) {
TR->walk(ClosureWalker);
return ClosureWalker.FoundFunctionTypeRepr;
}