Skip to content

Commit ebb4e16

Browse files
committed
Add struct __clang_Interpreter_NewTag
1 parent 2629793 commit ebb4e16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
// Runtime symbols required if the library using JIT (Cpp::Evaluate) does not
9090
// link to llvm
9191
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
92+
struct __clang_Interpreter_NewTag {
93+
} __ci_newtag;
9294
#if CLANG_VERSION_MAJOR >= 22
9395
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
9496
void* OpaqueType)
@@ -3332,6 +3334,7 @@ TInterp_t CreateInterpreter(const std::vector<const char*>& Args /*={}*/,
33323334

33333335
// Define runtime symbols in the JIT dylib for clang-repl
33343336
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
3337+
DefineAbsoluteSymbol(*I, "__ci_newtag", (uint64_t)&__ci_newtag);
33353338
// llvm > 22 has this defined as a C symbol that does not require mangling
33363339
#if CLANG_VERSION_MAJOR >= 22
33373340
DefineAbsoluteSymbol(*I, "__clang_Interpreter_SetValueWithAlloc",

0 commit comments

Comments
 (0)