Skip to content

Commit 9df8ead

Browse files
[lldb][Plugins][Swift] Reflect API changes in SwiftExpressionParser
`swift::performLLVMOptimizations` was recently changed.
1 parent 2b23b84 commit 9df8ead

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
@@ -2004,8 +2004,9 @@ SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
20042004
llvm::ArrayRef<std::string>());
20052005

20062006
if (GenModule) {
2007-
swift::performLLVMOptimizations(IRGenOpts, GenModule.getModule(),
2008-
GenModule.getTargetMachine(), nullptr);
2007+
swift::performLLVMOptimizations(
2008+
IRGenOpts, m_swift_ast_ctx.GetDiagnosticEngine(), nullptr,
2009+
GenModule.getModule(), GenModule.getTargetMachine(), nullptr);
20092010
}
20102011
auto ContextAndModule = std::move(GenModule).release();
20112012
m_llvm_context.reset(ContextAndModule.first);

0 commit comments

Comments
 (0)