Skip to content

Commit 2a899b3

Browse files
committed
[WARP] Skip non-defined function symbols when collecting constraints
Reduces the size of constraints, reducing the size of chunks.
1 parent 906de8c commit 2a899b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/warp/src/cache/guid.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ impl ConstraintBuilder {
155155
let guid_constraint = Constraint::from_function(&guid, Some(offset));
156156
constraints.push(guid_constraint);
157157
}
158-
let symbol_constraint = self.related_symbol_constraint(&function.symbol(), offset);
159-
constraints.push(symbol_constraint);
158+
if let Some(symbol) = function.defined_symbol() {
159+
let symbol_constraint = self.related_symbol_constraint(&symbol, offset);
160+
constraints.push(symbol_constraint);
161+
}
160162
constraints
161163
}
162164

0 commit comments

Comments
 (0)