Skip to content

Commit 16ef5da

Browse files
committed
[LLVM][MSWIN][CI] Fix LLVM module build with latest CI update
1 parent 1808a94 commit 16ef5da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/target/llvm/llvm_module.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ void LLVMModuleNode::InitORCJIT() {
515515
const llvm::Triple& triple) -> std::unique_ptr<llvm::orc::ObjectLayer> {
516516
#endif
517517
#if _WIN32
518-
auto GetMemMgr = []() { return std::make_unique<llvm::SectionMemoryManager>(); };
518+
auto GetMemMgr = [](llvm::orc::ExecutionSession&) {
519+
return std::make_unique<llvm::SectionMemoryManager>();
520+
};
519521
auto ObjLinkingLayer =
520522
std::make_unique<llvm::orc::RTDyldObjectLinkingLayer>(session, std::move(GetMemMgr));
521523
#else

0 commit comments

Comments
 (0)