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/debug.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/warp/src/plugin/debug.rs') diff --git a/plugins/warp/src/plugin/debug.rs b/plugins/warp/src/plugin/debug.rs index 24cdf1c3..399dba50 100644 --- a/plugins/warp/src/plugin/debug.rs +++ b/plugins/warp/src/plugin/debug.rs @@ -9,9 +9,10 @@ pub struct DebugFunction; impl FunctionCommand for DebugFunction { fn action(&self, _view: &BinaryView, func: &Function) { - if let Ok(lifted_il) = func.lifted_il() { - log::info!("{:#?}", build_function(func, &lifted_il, false)); - } + log::info!( + "{:#?}", + build_function(func, || func.lifted_il().ok(), false) + ); } fn valid(&self, _view: &BinaryView, _func: &Function) -> bool { -- cgit v1.3.1