Skip to content

Commit bc73fa9

Browse files
committed
Update to LLVM 16
1 parent 8b7ff6d commit bc73fa9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

expr2/reactor/LLVMJIT.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include "math.h"
1516
#include "LLVMReactor.hpp"
1617

1718
#include "Debug.hpp"

expr2/reactor/LLVMReactor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ Value *Nucleus::allocateStackVariable(Type *type, int arraySize)
673673
declaration = new llvm::AllocaInst(T(type), 0, (llvm::Value *)nullptr, align);
674674
}
675675

676-
entryBlock.getInstList().push_front(declaration);
676+
declaration->insertInto(&entryBlock, entryBlock.begin());
677677

678678
return V(declaration);
679679
}

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if use_asmjit
8787
else
8888
sources = sources_common + sources_expr2
8989
incdir += include_directories('expr2/reactor')
90-
deps += dependency('llvm', version: ['>= 10.0', '< 16'], method: 'config-tool', static: get_option('static-llvm'),
90+
deps += dependency('llvm', version: ['>= 10.0', '< 17'], method: 'config-tool', static: get_option('static-llvm'),
9191
modules: [
9292
'asmprinter', 'executionengine', 'target', 'orcjit', 'native',
9393
])

0 commit comments

Comments
 (0)