Skip to content

Commit ce735a1

Browse files
antoniofrighettoJDevlieghere
authored andcommitted
[lldb][Plugins][Swift] Reflect API changes in SwiftExpressionParser
`swift::performLLVMOptimizations` was recently changed. (cherry picked from commit 9df8ead)
1 parent 33d3fe5 commit ce735a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,8 +2041,9 @@ SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
20412041
llvm::ArrayRef<std::string>());
20422042

20432043
if (GenModule) {
2044-
swift::performLLVMOptimizations(IRGenOpts, GenModule.getModule(),
2045-
GenModule.getTargetMachine(), nullptr);
2044+
swift::performLLVMOptimizations(
2045+
IRGenOpts, m_swift_ast_ctx.GetDiagnosticEngine(), nullptr,
2046+
GenModule.getModule(), GenModule.getTargetMachine(), nullptr);
20462047
}
20472048
auto ContextAndModule = std::move(GenModule).release();
20482049
m_llvm_context.reset(ContextAndModule.first);

0 commit comments

Comments
 (0)