Skip to content

Commit 917ef6c

Browse files
committed
[lldb] Make sure to eliminate ownership after the diagnostic passes, but before IRGen.
Before I flip the switch, this will be a no-op. It is needed though after I flip the switch since IRgen is not meant to see ownership SIL.
1 parent b2608dc commit 917ef6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,7 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16731673
}
16741674

16751675
runSILDiagnosticPasses(*sil_module);
1676+
runSILOwnershipEliminatorPass(*sil_module);
16761677

16771678
if (log) {
16781679
std::string s;

0 commit comments

Comments
 (0)