Skip to content

Commit 94c4d11

Browse files
committed
Remove some redundant post walks
1 parent aa51e04 commit 94c4d11

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

lib/Sema/CSGen.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ namespace {
124124

125125
return Action::Continue(expr);
126126
}
127-
128-
PostWalkResult<Expr *> walkToExprPost(Expr *expr) override {
129-
return Action::Continue(expr);
130-
}
131-
127+
132128
/// Ignore statements.
133129
PreWalkResult<Stmt *> walkToStmtPre(Stmt *stmt) override {
134130
return Action::SkipChildren(stmt);
@@ -848,11 +844,6 @@ namespace {
848844

849845
return Action::Continue(expr);
850846
}
851-
852-
PostWalkResult<Expr *> walkToExprPost(Expr *expr) override {
853-
return Action::Continue(expr);
854-
}
855-
856847
/// Ignore statements.
857848
PreWalkResult<Stmt *> walkToStmtPre(Stmt *stmt) override {
858849
return Action::SkipChildren(stmt);

lib/Sema/MiscDiagnostics.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,6 @@ static void diagSyntacticUseRestrictions(const Expr *E, const DeclContext *DC,
360360
return Action::Continue(E);
361361
}
362362

363-
PostWalkResult<Expr *> walkToExprPost(Expr *E) override {
364-
return Action::Continue(E);
365-
}
366-
367363
/// Visit each component of the keypath and emit a diagnostic if they
368364
/// refer to a member that has effects.
369365
void checkForEffectfulKeyPath(KeyPathExpr *keyPath) {

0 commit comments

Comments
 (0)