diff options
author | Yury Smolsky <yury@smolsky.by> | 2018-07-28 00:26:42 +0300 |
---|---|---|
committer | Daniel Martà <mvdan@mvdan.cc> | 2018-08-20 13:42:37 +0000 |
commit | 5403b8ecebc37da227dae170f01b6004a66bf2e6 (patch) | |
tree | 3e899a8bb90aec77d47f86e7b5be53079aebfbaf /src/cmd/compile/internal/ssa/debug.go | |
parent | 3b7b9dce43613d22ac58cc61b19268b32a157df0 (diff) | |
download | go-5403b8ecebc37da227dae170f01b6004a66bf2e6.tar.gz go-5403b8ecebc37da227dae170f01b6004a66bf2e6.zip |
cmd/compile: remove empty branches
Change-Id: Id87d9f55d1714fc553f5b1a9cba0f2fe348dad3e
Reviewed-on: https://go-review.googlesource.com/126396
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/debug.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/debug.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/ssa/debug.go b/src/cmd/compile/internal/ssa/debug.go index becee358b6..c1fbdcc517 100644 --- a/src/cmd/compile/internal/ssa/debug.go +++ b/src/cmd/compile/internal/ssa/debug.go @@ -535,8 +535,6 @@ func (state *debugState) mergePredecessors(b *Block, blockLocs []*BlockDebug) ([ } if len(preds) == 0 { - if state.loggingEnabled { - } state.currentState.reset(nil) return nil, true } @@ -854,7 +852,6 @@ func (state *debugState) buildLocationLists(blockLocs []*BlockDebug) { } state.changedVars.clear() } - } if state.loggingEnabled { @@ -914,8 +911,6 @@ func (state *debugState) updateVar(varID VarID, v *Value, curLoc []VarLoc) { for i, slot := range state.varSlots[varID] { pending.pieces[i] = curLoc[slot] } - return - } // writePendingEntry writes out the pending entry for varID, if any, |