Skip to content

Commit 30888ae

Browse files
committed
Work around a problem in newer llvm lite where it fails to set the landing pad in IR.
1 parent 67204e1 commit 30888ae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ classifiers = [
1818
"Programming Language :: Python :: 3 :: Only",
1919
]
2020
dependencies = [
21-
"llvmlite>=0.38,<0.39",
21+
"llvmlite>=0.38,<0.45",
2222
"numpy",
2323
"scipy",
2424
"psutil",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
llvmlite>=0.38,<0.39
1+
llvmlite>=0.38,<0.45
22
numpy
33
scipy
44
psutil

typed_python/compiler/native_compiler/native_ast_to_llvm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def add_functions(self, names_to_definitions):
341341

342342
func = self._functions_by_name[name]
343343
func.attributes.personality = external_function_references["tp_gxx_personality_v0"]
344+
func.attributes.add("uwtable")
344345

345346
arg_assignments = {}
346347
for i in range(len(func.args)):

0 commit comments

Comments
 (0)