@@ -4010,7 +4010,7 @@ def copy_expr_to(
4010
4010
expr : LowLevelILGoto
4011
4011
label_a = dest .get_label_for_source_instruction (expr .dest )
4012
4012
if label_a is None :
4013
- return dest .jump (dest .const_pointer (expr .function .arch .address_size , expr .function [expr .dest ].address ))
4013
+ return dest .jump (dest .const_pointer (expr .function .arch .address_size , expr .function [expr .dest ].address ), loc )
4014
4014
return dest .goto (label_a , loc )
4015
4015
if expr .operation == LowLevelILOperation .LLIL_IF :
4016
4016
expr : LowLevelILIf
@@ -4039,7 +4039,7 @@ def copy_expr_to(
4039
4039
return dest .extern_pointer (expr .size , expr .constant , expr .offset , loc )
4040
4040
if expr .operation == LowLevelILOperation .LLIL_FLOAT_CONST :
4041
4041
expr : LowLevelILFloatConst
4042
- return dest .float_const_raw (expr .size , expr .instr . operands [0 ], loc )
4042
+ return dest .float_const_raw (expr .size , expr .raw_operands [0 ], loc )
4043
4043
if expr .operation in [
4044
4044
LowLevelILOperation .LLIL_POP ,
4045
4045
LowLevelILOperation .LLIL_NORET ,
@@ -4197,7 +4197,7 @@ def append(self, expr: ExpressionIndex) -> InstructionIndex:
4197
4197
:return: Index of added instruction in the current function
4198
4198
:rtype: int
4199
4199
"""
4200
- return core .BNLowLevelILAddInstruction (self .handle , expr )
4200
+ return InstructionIndex ( core .BNLowLevelILAddInstruction (self .handle , expr ) )
4201
4201
4202
4202
def nop (self , loc : Optional ['ILSourceLocation' ] = None ) -> ExpressionIndex :
4203
4203
"""
0 commit comments