You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting a function attribute with add_attribute_at_index() and AttributeFunctionIndex fails with
OverflowError: can't convert negative number to unsigned
This seems to be because the LLVM headers define LLVMAttributeFunctionIndex as -1, but LLVMAttributeIndex is a typedef for unsigned and CFFI doesn't allow negative values for unsigned integer parameters.
I guess the only way to handle this is to convert each integer argument to the correct type before forwarding it to the CFFI wrapper. A bit annoying, but doable.
Setting a function attribute with
add_attribute_at_index()
andAttributeFunctionIndex
fails withThis seems to be because the LLVM headers define LLVMAttributeFunctionIndex as -1, but LLVMAttributeIndex is a typedef for
unsigned
and CFFI doesn't allow negative values for unsigned integer parameters.Test Case:
The text was updated successfully, but these errors were encountered: