Skip to content

Commit dfed4b4

Browse files
Fix ExecutorSymbolDef compat in llvm<17
1 parent 95e531f commit dfed4b4

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
@@ -3606,7 +3606,11 @@ namespace Cpp {
36063606

36073607
if (addr) {
36083608
loadedSymbols[symbol] =
3609+
#if CLANG_VERSION_MAJOR < 17
3610+
JITEvaluatedSymbol(addr, JITSymbolFlags::Exported);
3611+
#else
36093612
llvm::orc::ExecutorSymbolDef(llvm::orc::ExecutorAddr::fromPtr(addr), JITSymbolFlags::Exported);
3613+
#endif // CLANG_VERSION_MAJOR < 17
36103614
} else {
36113615
// Collect all failing symbols, delegate their responsibility and then
36123616
// fail their materialization. R->defineNonExistent() sounds like it

0 commit comments

Comments
 (0)