Skip to content

Commit

Permalink
Fix #944. Add .argtypes to prevent errors in pypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sklam committed May 15, 2023
1 parent 24be5e8 commit 8283f5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvmlite/binding/passmanagers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from ctypes import c_bool, c_char_p, c_int, c_size_t, c_uint, Structure, byref
from ctypes import (c_bool, c_char_p, c_int, c_size_t, c_uint, Structure, byref,
POINTER)
from collections import namedtuple
from enum import IntFlag
from llvmlite.binding import ffi
Expand Down Expand Up @@ -914,3 +915,5 @@ def run_with_remarks(self, function, remarks_format='yaml',

ffi.lib.LLVMPY_AddRefPrunePass.argtypes = [ffi.LLVMPassManagerRef, c_int,
c_size_t]

ffi.lib.LLVMPY_DumpRefPruneStats.argtypes = [POINTER(_c_PruneStats), c_bool]

0 comments on commit 8283f5c

Please sign in to comment.