[SourceKit] Initialize pointer as nullptr to fix a crash. rdar://28959889

This commit is contained in:
Xi Ge
2016-10-27 13:01:23 -07:00
parent d0581eaef3
commit 9577d980b0
2 changed files with 3 additions and 1 deletions

View File

@@ -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);