mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Initialize pointer as nullptr to fix a crash. rdar://28959889
This commit is contained in:
@@ -1447,7 +1447,7 @@ private:
|
||||
bool containClosure(Expr *E) {
|
||||
if (E->getStartLoc().isInvalid())
|
||||
return false;
|
||||
EditorPlaceholderExpr *Found;
|
||||
EditorPlaceholderExpr *Found = nullptr;
|
||||
ClosureInfo Info;
|
||||
ClosureTypeWalker ClosureWalker(SM, Info);
|
||||
PlaceholderFinder Finder(E->getStartLoc(), Found);
|
||||
|
||||
Reference in New Issue
Block a user