File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- chbversion : str = "0.3.0-20250723 "
1+ chbversion : str = "0.3.0-20250729 "
Original file line number Diff line number Diff line change @@ -724,8 +724,14 @@ def ast(self,
724724 cstr = rv .constant .string_reference ()
725725 straddr = hex (rv .constant .value )
726726 astexpr = astree .mk_string_constant (astexpr , cstr , straddr )
727- rtnstmt = astree .mk_return_stmt (astexpr , instr .iaddr , instr .bytestring )
728- blockstmts [n ] = [blocknode , rtnstmt ]
727+ rtnstmt = astree .mk_return_stmt (
728+ astexpr , instr .iaddr , instr .bytestring )
729+ astree .add_expr_reachingdefs (astexpr , instr .xdata .reachingdefs )
730+ blockstmts [n ] = [blocknode , rtnstmt ]
731+ else :
732+ rtnstmt = astree .mk_return_stmt (
733+ None , instr .iaddr , instr .bytestring )
734+ blockstmts [n ] = [blocknode , rtnstmt ]
729735 else :
730736 blockstmts [n ] = [blocknode ]
731737
You can’t perform that action at this time.
0 commit comments