Skip to content

Commit ec6342d

Browse files
authored
Merge pull request #8027 from hamishknight/return-tweaks
[lldb] Update for Swift ReturnStmt changes
2 parents 9b05bf2 + b795611 commit ec6342d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftASTManipulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ swift::Stmt *SwiftASTManipulator::ConvertExpressionToTmpReturnVarAccess(
295295

296296
if (in_return) {
297297
result_loc_info.return_stmt =
298-
new (ast_context) swift::ReturnStmt(source_loc, nullptr);
298+
swift::ReturnStmt::createImplicit(ast_context, source_loc, nullptr);
299299
body.push_back(result_loc_info.return_stmt);
300300
}
301301

0 commit comments

Comments
 (0)