Have reset! LEAVE_INTERNAL_BUFFERS_UNINITIALIZED

This commit is contained in:
Nigel Tao committed 2021-11-16 13:16:43 +11:00
1 parent f0c2a40d66
commit 07c053af6f
3 files changed
+29 -12

No files matched your search

+9 -4
View File
@@ -386,10 +386,15 @@ func (n *Expr) SetMBounds(x interval.IntRange) { n.mBounds = x }
func (n *Expr) SetMType(x *TypeExpr) { n.mType = x }
func (n *Expr) IsArgsDotFoo() (foo t.ID) {
if n.id0 == t.IDDot {
if (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDArgs) {
return n.id2
}
if (n.id0 == t.IDDot) && (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDArgs) {
return n.id2
}
return 0
}
func (n *Expr) IsThisDotFoo() (foo t.ID) {
if (n.id0 == t.IDDot) && (n.lhs.id0 == 0) && (n.lhs.id2 == t.IDThis) {
return n.id2
}
return 0
}