Change-Id: I77e5056a159b6041ca49480a3c493a515d4b3a2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/496255
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
                if nargs > 0 {
                        params = make([]Type, nargs)
                        for i, a := range args {
-                               *x = *a
-                               check.assignment(x, nil, "argument to "+predeclaredFuncs[id].name)
-                               if x.mode == invalid {
+                               check.assignment(a, nil, "argument to "+predeclaredFuncs[id].name)
+                               if a.mode == invalid {
                                        return
                                }
-                               params[i] = x.typ
+                               params[i] = a.typ
                        }
                }
 
 
                if nargs > 0 {
                        params = make([]Type, nargs)
                        for i, a := range args {
-                               *x = *a
-                               check.assignment(x, nil, "argument to "+predeclaredFuncs[id].name)
-                               if x.mode == invalid {
+                               check.assignment(a, nil, "argument to "+predeclaredFuncs[id].name)
+                               if a.mode == invalid {
                                        return
                                }
-                               params[i] = x.typ
+                               params[i] = a.typ
                        }
                }