summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/src/cache/guid.rs6
1 files changed, 4 insertions, 2 deletions
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
}