Introduce finer-grained effects

This commit is contained in:
Nigel Tao committed 2018-07-29 13:40:49 +10:00
1 parent 77e538aec8
commit 0a47966e72
12 files changed
+129 -115

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@ func (n *Expr) Eq(o *Expr) bool {
return n.constValue.Cmp(o.constValue) == 0
}
if (n.flags&flagsThatMatterForEq) != (o.flags&flagsThatMatterForEq) ||
n.id0 != o.id0 || n.id1 != o.id1 || n.id2 != o.id2 {
if n.flags != o.flags || n.id0 != o.id0 || n.id1 != o.id1 || n.id2 != o.id2 {
return false
}
if !n.lhs.AsExpr().Eq(o.lhs.AsExpr()) {