From 1526873f4199e5852ba9247bb237c2a7ebf58bb9 Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Sat, 13 Jun 2020 16:55:03 +0000 Subject: [PATCH] Hotfix ir equiv 2 --- src/ir/equiv.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ir/equiv.rs b/src/ir/equiv.rs index 685237c..ebf78b4 100644 --- a/src/ir/equiv.rs +++ b/src/ir/equiv.rs @@ -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;