Skip to content

Commit 8d91bcd

Browse files
committed
Add struct __clang_Interpreter_NewTag
1 parent 4ef7df9 commit 8d91bcd

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
@@ -93,6 +93,8 @@
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 {
97+
} __ci_newtag;
9698
#if CLANG_VERSION_MAJOR >= 22
9799
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
98100
void* OpaqueType)
@@ -3502,6 +3504,7 @@ TInterp_t CreateInterpreter(const std::vector<const char*>& Args /*={}*/,
35023504

35033505
// Define runtime symbols in the JIT dylib for clang-repl
35043506
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
3507+
DefineAbsoluteSymbol(*I, "__ci_newtag", (uint64_t)&__ci_newtag);
35053508
// llvm > 22 has this defined as a C symbol that does not require mangling
35063509
#if CLANG_VERSION_MAJOR >= 22
35073510
DefineAbsoluteSymbol(*I, "__clang_Interpreter_SetValueWithAlloc",

0 commit comments

Comments
 (0)