• Matthew Dempsky's avatar
    cmd/compile: eliminate OXFALL · 4347baac
    Matthew Dempsky authored
    Previously, we used OXFALL vs OFALL to distinguish fallthrough
    statements that had been validated. Because in the Node AST we flatten
    statement blocks, OXCASE and OXFALL needed to keep track of their
    block scopes for this purpose.
    
    Now that we have an AST that keeps these separate, we can just perform
    the validation earlier.
    
    Passes toolstash-check.
    
    Fixes #14540.
    
    Change-Id: I8421eaba16c2b3b72c9c5483b5cf20b14261385e
    Reviewed-on: https://go-review.googlesource.com/61130
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    4347baac
opnames.go 4.4 KB