summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/types2/call.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/types2/call.go')
-rw-r--r--src/cmd/compile/internal/types2/call.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd/compile/internal/types2/call.go b/src/cmd/compile/internal/types2/call.go
index 4b854df774..834d2f467f 100644
--- a/src/cmd/compile/internal/types2/call.go
+++ b/src/cmd/compile/internal/types2/call.go
@@ -419,17 +419,6 @@ func (check *Checker) genericExprList(elist []syntax.Expr) []*operand {
func (check *Checker) arguments(call *syntax.CallExpr, sig *Signature, targs []Type, xlist []syntax.Expr, args []*operand) (rsig *Signature) {
rsig = sig
- // TODO(gri) try to eliminate this extra verification loop
- for _, a := range args {
- switch a.mode {
- case typexpr:
- check.errorf(a, NotAnExpr, "%s used as value", a)
- return
- case invalid:
- return
- }
- }
-
// Function call argument/parameter count requirements
//
// | standard call | dotdotdot call |