From 2a899b31320a5ebfba009961f47b8f53b4eadf02 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 23 Nov 2025 17:18:02 -0500 Subject: [WARP] Skip non-defined function symbols when collecting constraints Reduces the size of constraints, reducing the size of chunks. --- plugins/warp/src/cache/guid.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/warp/src/cache') diff --git a/plugins/warp/src/cache/guid.rs b/plugins/warp/src/cache/guid.rs index df215554..29e14858 100644 --- a/plugins/warp/src/cache/guid.rs +++ b/plugins/warp/src/cache/guid.rs @@ -155,8 +155,10 @@ impl ConstraintBuilder { let guid_constraint = Constraint::from_function(&guid, Some(offset)); constraints.push(guid_constraint); } - let symbol_constraint = self.related_symbol_constraint(&function.symbol(), offset); - constraints.push(symbol_constraint); + if let Some(symbol) = function.defined_symbol() { + let symbol_constraint = self.related_symbol_constraint(&symbol, offset); + constraints.push(symbol_constraint); + } constraints } -- cgit v1.3.1