Fix inverted result of is_leaf method

This commit is contained in:
Y-Nak
2020-02-13 16:56:08 +09:00
committed by Benjamin Bouvier
parent 51229c3f58
commit 58e5a62cde
2 changed files with 4 additions and 4 deletions

View File

@@ -295,8 +295,8 @@ impl Function {
/// to be confused with a "leaf function" in Windows terminology.
pub fn is_leaf(&self) -> bool {
// Conservative result: if there's at least one function signature referenced in this
// function, assume it may call.
!self.dfg.signatures.is_empty()
// function, assume it is not a leaf.
self.dfg.signatures.is_empty()
}
}