We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReturnStmt
1 parent 54d6bc9 commit f54172eCopy full SHA for f54172e
lib/Sema/BuilderTransform.cpp
@@ -337,12 +337,6 @@ class BuilderClosureVisitor
337
return captureExpr(call, /*oneWay=*/true, braceStmt);
338
}
339
340
- VarDecl *visitReturnStmt(ReturnStmt *stmt) {
341
- if (!unhandledNode)
342
- unhandledNode = stmt;
343
- return nullptr;
344
- }
345
-
346
VarDecl *visitDoStmt(DoStmt *doStmt) {
347
auto childVar = visitBraceStmt(doStmt->getBody());
348
if (!childVar)
@@ -904,6 +898,7 @@ class BuilderClosureVisitor
904
898
CONTROL_FLOW_STMT(Fallthrough)
905
899
CONTROL_FLOW_STMT(Fail)
906
900
CONTROL_FLOW_STMT(PoundAssert)
901
+ CONTROL_FLOW_STMT(Return)
907
902
908
903
#undef CONTROL_FLOW_STMT
909
};
0 commit comments