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/workflow.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/warp/src/plugin/workflow.rs') diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index 735706cf..8da69342 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -220,9 +220,7 @@ pub fn insert_workflow() -> Result<(), ()> { let guid_activity = |ctx: &AnalysisContext| { let function = ctx.function(); - if let Some(lifted_il) = unsafe { ctx.lifted_il_function() } { - cached_function_guid(&function, &lifted_il); - } + cached_function_guid(&function, || unsafe { ctx.lifted_il_function() }); }; let guid_config = activity::Config::action( -- cgit v1.3.1