Hotfix ir equiv 2

This commit is contained in:
Jeehoon Kang
2020-06-13 16:55:03 +00:00
parent 0bdcfa7bc1
commit 1526873f41

View File

@@ -8,6 +8,10 @@ use crate::*;
impl IsEquiv for TranslationUnit {
fn is_equiv(&self, other: &Self) -> bool {
if self.decls.len() != other.decls.len() {
return false;
}
for (lhs, rhs) in izip!(&self.decls, &other.decls) {
if lhs.0 != rhs.0 {
return false;