diff options
| author | Mason Reed <mason@vector35.com> | 2024-10-24 19:17:11 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-10-24 19:17:11 -0400 |
| commit | f9ff195350d6dc0bf19627cf1f19e36b20890a31 (patch) | |
| tree | ca6f7f604146ea2efe96d93f439d8f9630c8df45 /plugins/warp/src/plugin/create.rs | |
| parent | e151425087b6c0ee8c4d099bfc2d6d1268201db0 (diff) | |
Make WARP function guid generation infallible
Diffstat (limited to 'plugins/warp/src/plugin/create.rs')
| -rw-r--r-- | plugins/warp/src/plugin/create.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/warp/src/plugin/create.rs b/plugins/warp/src/plugin/create.rs index 2b1ad60e..b404ae1c 100644 --- a/plugins/warp/src/plugin/create.rs +++ b/plugins/warp/src/plugin/create.rs @@ -31,11 +31,11 @@ impl Command for CreateSignatureFile { let start = Instant::now(); let mut data = warp::signature::Data::default(); - data.functions.par_extend( - view.functions() - .par_iter() - .filter_map(|func| cached_function(&func, func.low_level_il().ok()?.as_ref())), - ); + data.functions + .par_extend(view.functions().par_iter().filter_map(|func| { + let llil = func.low_level_il().ok()?; + Some(cached_function(&func, &llil)) + })); data.types.extend(view.types().iter().map(|ty| { let ref_ty = ty.type_object().to_owned(); ComputedType::new(from_bn_type(&view, ref_ty, u8::MAX)) |
