File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ pub fn display_row(
189
189
let mut arg_idx = 0 ;
190
190
let mut displayed_relocation = false ;
191
191
let analysis_result = if diff_config. show_data_flow {
192
- obj. get_flow_analysis_result ( & resolved. symbol )
192
+ obj. get_flow_analysis_result ( resolved. symbol )
193
193
} else {
194
194
None
195
195
} ;
@@ -217,7 +217,7 @@ pub fn display_row(
217
217
}
218
218
let data_flow_value =
219
219
analysis_result. and_then ( |result|
220
- result. as_ref ( ) . get_argument_value_at_address (
220
+ result. get_argument_value_at_address (
221
221
ins_ref. address , ( arg_idx - 1 ) as u8 ) ) ;
222
222
match ( arg, data_flow_value, resolved. ins_ref . branch_dest ) {
223
223
// If we have a flow analysis result, always use that over anything else.
Original file line number Diff line number Diff line change @@ -331,9 +331,9 @@ impl Object {
331
331
pub fn get_flow_analysis_result (
332
332
& self ,
333
333
symbol : & Symbol ,
334
- ) -> Option < & Box < dyn FlowAnalysisResult > > {
334
+ ) -> Option < & dyn FlowAnalysisResult > {
335
335
let key = symbol. section . unwrap_or_default ( ) as u64 + symbol. address ;
336
- self . flow_analysis_results . get ( & key)
336
+ self . flow_analysis_results . get ( & key) . map ( |result| result . as_ref ( ) )
337
337
}
338
338
339
339
pub fn add_flow_analysis_result (
You can’t perform that action at this time.
0 commit comments