mirror of
https://github.com/golang/go.git
synced 2026-06-27 19:30:52 +00:00
cmd/compile: catch missed case in binary-search-for-switch
This only affected SIMD-with-spectre=all, so rare, but blocks CL 753740. Change-Id: I3bc1306a2b739a6aeb5db78c3abc2d75115cf20f Reviewed-on: https://go-review.googlesource.com/c/go/+/775780 Auto-Submit: David Chase <drchase@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Arseny Samoylov <samoylov.arseny@gmail.com> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
c7d87cda53
commit
3f3387fab8
1 changed files with 4 additions and 0 deletions
|
|
@ -2042,6 +2042,10 @@ func branchTableN(s *state, idx *ssa.Value, intrinsicCall *ir.CallExpr, genOp fu
|
|||
s.startBlock(bPanic)
|
||||
s.rtcall(ir.Syms.PanicSimdImm, false, nil)
|
||||
}
|
||||
if s.curBlock != nil {
|
||||
bb := s.endBlock()
|
||||
bb.AddEdgeTo(jt)
|
||||
}
|
||||
|
||||
s.startBlock(jt)
|
||||
jt.Kind = ssa.BlockPlain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue