From 47e0f1f685119ebffecbb99d2cce35c53a384738 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 26 Aug 2025 23:43:32 -0400 Subject: [WARP] Fix generating lifted IL when function GUID is already cached We do not need to consult the lifted IL if we have already cached the function GUID in the function metadata --- plugins/warp/src/plugin/function.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/warp/src/plugin/function.rs') diff --git a/plugins/warp/src/plugin/function.rs b/plugins/warp/src/plugin/function.rs index 130e8582..a4fd2c10 100644 --- a/plugins/warp/src/plugin/function.rs +++ b/plugins/warp/src/plugin/function.rs @@ -47,11 +47,10 @@ pub struct CopyFunctionGUID; impl FunctionCommand for CopyFunctionGUID { fn action(&self, _view: &BinaryView, func: &Function) { - let Ok(lifted_il) = func.lifted_il() else { - log::error!("Could not get lifted il for copied function"); + let Some(guid) = cached_function_guid(func, || func.lifted_il().ok()) else { + log::error!("Could not get guid for copied function"); return; }; - let guid = cached_function_guid(func, &lifted_il); log::info!( "Function GUID for {:?}... {}", func.symbol().short_name(), -- cgit v1.3.1