Update compiler/src/value/integer/integer.rs

Co-authored-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
This commit is contained in:
Max Bruce 2021-06-08 13:24:08 -07:00 committed by gluax
parent e816ae4ac3
commit e4b88f3095

View File

@ -91,7 +91,7 @@ impl Integer {
}
pub fn is_allocated(&self) -> bool {
self.get_bits().into_iter().any(|b| !matches!(b, Boolean::Constant(_)))
self.get_bits().into_iter().any(|b| matches!(b, Boolean::Is(_) | Boolean::Not(_)))
}
pub fn get_value(&self) -> Option<String> {