• Keith Randall's avatar
    cmd/compile: keep JMPs around with -N · e360f7c4
    Keith Randall authored
    When -N, make sure we don't drop every instruction from
    a block, even ones which would otherwise be empty.
    Helps keep line numbers around for debugging, particularly
    for break and continue statements (which often compile
    down to nothing).
    
    Fixes #14379
    
    Change-Id: I33722c4f0dcd502f146fa48af262ba3a477c959a
    Reviewed-on: https://go-review.googlesource.com/19854
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMinux Ma <minux@golang.org>
    e360f7c4
sym.go 3.91 KB