cmd/internal/gc: make Node.Isddd boolean
Convert Node.Isddd to a boolean and simplify usage.
- Node.Isddd converted to bool
- Type.Isddd converted to bool
- mkinlcall converted to take isddd as a bool
- typecheckaste converted to take isddd as a bool
- ascompatte converted to take isddd as a bool
Change-Id: I52586145619c44182bb0c2c5d80a0a3fe3e50a07
Reviewed-on: https://go-review.googlesource.com/7172
Reviewed-by: Keith Randall <khr@golang.org>
diff --git a/src/cmd/internal/gc/subr.go b/src/cmd/internal/gc/subr.go
index d61f9a4..65881de 100644
--- a/src/cmd/internal/gc/subr.go
+++ b/src/cmd/internal/gc/subr.go
@@ -2425,10 +2425,10 @@
// arg list
var args *NodeList
- isddd := 0
+ isddd := false
for l := in; l != nil; l = l.Next {
args = list(args, l.N.Left)
- isddd = int(l.N.Left.Isddd)
+ isddd = l.N.Left.Isddd
}
methodrcvr := getthisx(method.Type).Type.Type
@@ -2477,7 +2477,7 @@
fn.Wrapper = true // ignore frame for panic+recover matching
call := Nod(OCALL, dot, nil)
call.List = args
- call.Isddd = uint8(isddd)
+ call.Isddd = isddd
if method.Type.Outtuple > 0 {
n := Nod(ORETURN, nil, nil)
n.List = list1(call)