From ebcb9cdf67e53d2ad50da1910d6c5f944c32b163 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 30 Mar 2017 11:16:23 -0700 Subject: [PATCH] cmd/compile: cull unused ssa construction Error function The preceding passes have caught any errors that could occur during SSA construction. Updates #19250 Change-Id: I736edb2017da3f111fb9f74be12d437b5a24d2b4 Reviewed-on: https://go-review.googlesource.com/38971 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/compile/internal/gc/ssa.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/cmd/compile/internal/gc/ssa.go b/src/cmd/compile/internal/gc/ssa.go index b5a6d455ad..da4c0bb34a 100644 --- a/src/cmd/compile/internal/gc/ssa.go +++ b/src/cmd/compile/internal/gc/ssa.go @@ -373,10 +373,6 @@ func (s *state) peekPos() src.XPos { return s.line[len(s.line)-1] } -func (s *state) Error(msg string, args ...interface{}) { - yyerrorl(s.peekPos(), msg, args...) -} - // newValue0 adds a new value with no arguments to the current block. func (s *state) newValue0(op ssa.Op, t ssa.Type) *ssa.Value { return s.curBlock.NewValue0(s.peekPos(), op, t) -- 2.48.1