Skip to content

Commit 02883df

Browse files
committed
Add struct __clang_Interpreter_NewTag
1 parent 4ef7df9 commit 02883df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
// Runtime symbols required if the library using JIT (Cpp::Evaluate) does not
9494
// link to llvm
9595
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
96+
struct __clang_Interpreter_NewTag {} __ci_newtag;
9697
#if CLANG_VERSION_MAJOR >= 22
9798
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
9899
void* OpaqueType)
@@ -3502,6 +3503,7 @@ TInterp_t CreateInterpreter(const std::vector<const char*>& Args /*={}*/,
35023503

35033504
// Define runtime symbols in the JIT dylib for clang-repl
35043505
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
3506+
DefineAbsoluteSymbol(*I, "__ci_newtag", (uint64_t)&__ci_newtag);
35053507
// llvm > 22 has this defined as a C symbol that does not require mangling
35063508
#if CLANG_VERSION_MAJOR >= 22
35073509
DefineAbsoluteSymbol(*I, "__clang_Interpreter_SetValueWithAlloc",

0 commit comments

Comments
 (0)