File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,21 +117,23 @@ inline llvm::orc::LLJIT* getExecutionEngine(cling::Interpreter& I) {
117
117
return I.getExecutionEngine ();
118
118
#endif
119
119
120
+ unsigned m_ExecutorOffset = 0 ;
121
+
120
122
#if CLANG_VERSION_MAJOR == 13
121
123
#ifdef __APPLE__
122
- const unsigned m_ExecutorOffset = 62 ;
124
+ m_ExecutorOffset = 62 ;
123
125
#else
124
- const unsigned m_ExecutorOffset = 72 ;
126
+ m_ExecutorOffset = 72 ;
125
127
#endif // __APPLE__
126
128
#endif
127
129
128
130
// Note: The offsets changed in Cling based on LLVM 16 with the introduction of
129
131
// a thread safe context - llvm::orc::ThreadSafeContext
130
132
#if CLANG_VERSION_MAJOR == 16
131
133
#ifdef __APPLE__
132
- const unsigned m_ExecutorOffset = 68 ;
134
+ m_ExecutorOffset = 68 ;
133
135
#else
134
- const unsigned m_ExecutorOffset = 78 ;
136
+ m_ExecutorOffset = 78 ;
135
137
#endif // __APPLE__
136
138
#endif
137
139
You can’t perform that action at this time.
0 commit comments