From 34f7837286c0bd1ea0d50c06fbf585a7090dbd4e Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 15 Jun 2017 17:24:39 -0400 Subject: [PATCH] go/ssa: remove statement with no effect Change-Id: I1c7958ab16f19fbdc71d2305da3d4afb6e150f73 Reviewed-on: https://go-review.googlesource.com/45934 Reviewed-by: Dmitri Shuralyov --- go/ssa/sanity.go | 1 - 1 file changed, 1 deletion(-) diff --git a/go/ssa/sanity.go b/go/ssa/sanity.go index 9e49e3b4..b15ad9fb 100644 --- a/go/ssa/sanity.go +++ b/go/ssa/sanity.go @@ -352,7 +352,6 @@ func (s *sanity) checkBlock(b *BasicBlock, index int) { // TODO(adonovan): also check their block dominates block b. if val, ok := val.(Instruction); ok { if val.Block() == nil { - val.String() s.errorf("operand %d of %s is an instruction (%s) that belongs to no block", i, instr, val) } else if val.Parent() != s.fn { s.errorf("operand %d of %s is an instruction (%s) from function %s", i, instr, val, val.Parent())