Skip to content

Commit e15be64

Browse files
committed
review comments
1 parent 8d91bcd commit e15be64

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@
9595
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
9696
struct __clang_Interpreter_NewTag {
9797
} __ci_newtag;
98-
#if CLANG_VERSION_MAJOR >= 22
98+
#if CLANG_VERSION_MAJOR > 21
9999
extern "C" void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
100100
void* OpaqueType)
101101
#else
102102
void* __clang_Interpreter_SetValueWithAlloc(void* This, void* OutVal,
103103
void* OpaqueType);
104104
#endif
105105

106-
#if CLANG_VERSION_MAJOR >= 19
106+
#if CLANG_VERSION_MAJOR > 18
107107
extern "C" void __clang_Interpreter_SetValueNoAlloc(void* This,
108108
void* OutVal,
109109
void* OpaqueType, ...);
110-
#elif CLANG_VERSION_MAJOR == 18
110+
#else
111111
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*);
112112
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, void*);
113113
void __clang_Interpreter_SetValueNoAlloc(void*, void*, void*, float);
@@ -3359,9 +3359,8 @@ CPPINTEROP_API JitCall MakeFunctionCallable(TCppConstFunction_t func) {
33593359

33603360
namespace {
33613361
#if !defined(CPPINTEROP_USE_CLING) && !defined(EMSCRIPTEN)
3362-
static bool DefineAbsoluteSymbol(compat::Interpreter& I,
3363-
const char* linker_mangled_name,
3364-
uint64_t address) {
3362+
bool DefineAbsoluteSymbol(compat::Interpreter& I,
3363+
const char* linker_mangled_name, uint64_t address) {
33653364
using namespace llvm;
33663365
using namespace llvm::orc;
33673366

0 commit comments

Comments
 (0)