summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py6
-rw-r--r--python/mediumlevelil.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 80fb32b4..338eba68 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -4010,7 +4010,7 @@ class LowLevelILFunction:
expr: LowLevelILGoto
label_a = dest.get_label_for_source_instruction(expr.dest)
if label_a is None:
- return dest.jump(dest.const_pointer(expr.function.arch.address_size, expr.function[expr.dest].address))
+ return dest.jump(dest.const_pointer(expr.function.arch.address_size, expr.function[expr.dest].address), loc)
return dest.goto(label_a, loc)
if expr.operation == LowLevelILOperation.LLIL_IF:
expr: LowLevelILIf
@@ -4039,7 +4039,7 @@ class LowLevelILFunction:
return dest.extern_pointer(expr.size, expr.constant, expr.offset, loc)
if expr.operation == LowLevelILOperation.LLIL_FLOAT_CONST:
expr: LowLevelILFloatConst
- return dest.float_const_raw(expr.size, expr.instr.operands[0], loc)
+ return dest.float_const_raw(expr.size, expr.raw_operands[0], loc)
if expr.operation in [
LowLevelILOperation.LLIL_POP,
LowLevelILOperation.LLIL_NORET,
@@ -4197,7 +4197,7 @@ class LowLevelILFunction:
:return: Index of added instruction in the current function
:rtype: int
"""
- return core.BNLowLevelILAddInstruction(self.handle, expr)
+ return InstructionIndex(core.BNLowLevelILAddInstruction(self.handle, expr))
def nop(self, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
"""
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index d4aef4ce..b4d6663e 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -3621,7 +3621,7 @@ class MediumLevelILFunction:
:return: Index of added instruction in the current function
:rtype: int
"""
- return core.BNMediumLevelILAddInstruction(self.handle, expr)
+ return InstructionIndex(core.BNMediumLevelILAddInstruction(self.handle, expr))
def nop(self, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
"""