Bug fixes
This commit is contained in:
parent
c1b46e4384
commit
dd9ba65328
3 changed files with 5 additions and 5 deletions
|
|
@ -1729,7 +1729,7 @@ class CallOrInvokeInstruction(Instruction):
|
||||||
return _make_value(function)
|
return _make_value(function)
|
||||||
|
|
||||||
def _set_called_function(self, function):
|
def _set_called_function(self, function):
|
||||||
self._ptr.setCalledFunction(function)
|
self._ptr.setCalledFunction(function._ptr)
|
||||||
|
|
||||||
called_function = property(_get_called_function, _set_called_function)
|
called_function = property(_get_called_function, _set_called_function)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -124,8 +124,8 @@ int py_int_to(PyObject *intobj, unsigned & val){
|
||||||
static
|
static
|
||||||
int py_int_to(PyObject *intobj, unsigned long long & val){
|
int py_int_to(PyObject *intobj, unsigned long long & val){
|
||||||
if (!PyInt_Check(intobj) and !PyLong_Check(intobj)) {
|
if (!PyInt_Check(intobj) and !PyLong_Check(intobj)) {
|
||||||
// raise TypeError
|
// raise TypeError;
|
||||||
PyErr_SetString(PyExc_TypeError, "Expecting an int 2");
|
PyErr_SetString(PyExc_TypeError, "Expecting an int");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
val = PyInt_AsUnsignedLongLongMask(intobj);
|
val = PyInt_AsUnsignedLongLongMask(intobj);
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class BinaryOperator:
|
||||||
|
|
||||||
@CallInst
|
@CallInst
|
||||||
class CallInst:
|
class CallInst:
|
||||||
_downcast_ = Value, Instruction
|
_downcast_ = Value, User, Instruction
|
||||||
|
|
||||||
getCallingConv = Method(CallingConv.ID)
|
getCallingConv = Method(CallingConv.ID)
|
||||||
setCallingConv = Method(Void, CallingConv.ID)
|
setCallingConv = Method(Void, CallingConv.ID)
|
||||||
|
|
@ -277,7 +277,7 @@ class IndirectBrInst:
|
||||||
|
|
||||||
@InvokeInst
|
@InvokeInst
|
||||||
class InvokeInst:
|
class InvokeInst:
|
||||||
_downcast_ = Value, Instruction
|
_downcast_ = Value, User, Instruction
|
||||||
getCallingConv = Method(CallingConv.ID)
|
getCallingConv = Method(CallingConv.ID)
|
||||||
setCallingConv = Method(Void, CallingConv.ID)
|
setCallingConv = Method(Void, CallingConv.ID)
|
||||||
getParamAlignment = Method(cast(Unsigned, int), cast(int, Unsigned))
|
getParamAlignment = Method(cast(Unsigned, int), cast(int, Unsigned))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue