File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,10 @@ impl HighLevelILFunction {
6969 unsafe { BNGetHighLevelILExprCount ( self . handle ) }
7070 }
7171
72- pub fn ssa_form ( & self ) -> HighLevelILFunction {
72+ pub fn ssa_form ( & self ) -> Ref < HighLevelILFunction > {
7373 let ssa = unsafe { BNGetHighLevelILSSAForm ( self . handle ) } ;
7474 assert ! ( !ssa. is_null( ) ) ;
75- HighLevelILFunction {
76- handle : ssa,
77- full_ast : self . full_ast ,
78- }
75+ unsafe { HighLevelILFunction :: ref_from_raw ( ssa, self . full_ast ) }
7976 }
8077
8178 pub fn function ( & self ) -> Ref < Function > {
Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ impl MediumLevelILFunction {
9191 unsafe { BNGetMediumLevelILExprCount ( self . handle ) }
9292 }
9393
94- pub fn ssa_form ( & self ) -> MediumLevelILFunction {
94+ pub fn ssa_form ( & self ) -> Ref < MediumLevelILFunction > {
9595 let ssa = unsafe { BNGetMediumLevelILSSAForm ( self . handle ) } ;
9696 assert ! ( !ssa. is_null( ) ) ;
97- MediumLevelILFunction { handle : ssa }
97+ unsafe { MediumLevelILFunction :: ref_from_raw ( ssa) }
9898 }
9999
100100 pub fn function ( & self ) -> Ref < Function > {
You can’t perform that action at this time.
0 commit comments