aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/typecheck/typecheck.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/typecheck/typecheck.go')
-rw-r--r--src/cmd/compile/internal/typecheck/typecheck.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd/compile/internal/typecheck/typecheck.go b/src/cmd/compile/internal/typecheck/typecheck.go
index 5dac366b10..8790eac28a 100644
--- a/src/cmd/compile/internal/typecheck/typecheck.go
+++ b/src/cmd/compile/internal/typecheck/typecheck.go
@@ -802,17 +802,6 @@ func typecheck1(n ir.Node, top int) ir.Node {
case ir.ODCLFUNC:
tcFunc(n.(*ir.Func))
return n
-
- case ir.ODCLCONST:
- n := n.(*ir.Decl)
- n.X = Expr(n.X).(*ir.Name)
- return n
-
- case ir.ODCLTYPE:
- n := n.(*ir.Decl)
- n.X = typecheck(n.X, ctxType).(*ir.Name)
- types.CheckSize(n.X.Type())
- return n
}
// No return n here!