mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 08:10:29 +09:00
Hotfix ir equiv 2
This commit is contained in:
1 parent
0bdcfa7bc1
commit
1526873f41
1 file changed
+4
@@ -8,6 +8,10 @@ use crate::*;
|
|||||||
|
|
||||||
impl IsEquiv for TranslationUnit {
|
impl IsEquiv for TranslationUnit {
|
||||||
fn is_equiv(&self, other: &Self) -> bool {
|
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) {
|
for (lhs, rhs) in izip!(&self.decls, &other.decls) {
|
||||||
if lhs.0 != rhs.0 {
|
if lhs.0 != rhs.0 {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in new issue
Block a user