File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5376,10 +5376,10 @@ class ExprContextAnalyzer {
5376
5376
Context(DC->getASTContext ()), PossibleTypes(PossibleTypes),
5377
5377
PossibleNames(PossibleNames), PossibleCallees(PossibleCallees) {}
5378
5378
5379
- bool Analyze () {
5379
+ void Analyze () {
5380
5380
// We cannot analyze without target.
5381
5381
if (!ParsedExpr)
5382
- return false ;
5382
+ return ;
5383
5383
5384
5384
ExprParentFinder Finder (ParsedExpr, [](ASTWalker::ParentTy Node,
5385
5385
ASTWalker::ParentTy Parent) {
@@ -5432,7 +5432,7 @@ class ExprContextAnalyzer {
5432
5432
DC->walkContext (Finder);
5433
5433
5434
5434
if (Finder.Ancestors .empty ())
5435
- return false ;
5435
+ return ;
5436
5436
5437
5437
auto &P = Finder.Ancestors .back ();
5438
5438
if (auto Parent = P.getAsExpr ()) {
@@ -5444,7 +5444,6 @@ class ExprContextAnalyzer {
5444
5444
} else if (auto Parent = P.getAsPattern ()) {
5445
5445
analyzePattern (Parent);
5446
5446
}
5447
- return (!PossibleTypes.empty () || !PossibleNames.empty ());
5448
5447
}
5449
5448
};
5450
5449
You can’t perform that action at this time.
0 commit comments