From f9ff195350d6dc0bf19627cf1f19e36b20890a31 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 24 Oct 2024 19:17:11 -0400 Subject: Make WARP function guid generation infallible --- plugins/warp/src/plugin/create.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/warp/src/plugin/create.rs') 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)) -- cgit v1.3.1