Skip to content

Commit a369962

Browse files
Fix ExecutorSymbolDef compat in llvm<17
1 parent b307433 commit a369962

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,11 @@ namespace Cpp {
36383638

36393639
if (addr) {
36403640
loadedSymbols[symbol] =
3641+
#if CLANG_VERSION_MAJOR < 17
3642+
JITEvaluatedSymbol(addr, JITSymbolFlags::Exported);
3643+
#else
36413644
llvm::orc::ExecutorSymbolDef(llvm::orc::ExecutorAddr::fromPtr(addr), JITSymbolFlags::Exported);
3645+
#endif // CLANG_VERSION_MAJOR < 17
36423646
} else {
36433647
// Collect all failing symbols, delegate their responsibility and then
36443648
// fail their materialization. R->defineNonExistent() sounds like it

0 commit comments

Comments
 (0)