]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: allow ir.OMIN/ir.OMAX in mayCall
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Sat, 3 Jun 2023 01:33:51 +0000 (08:33 +0700)
committerGopher Robot <gobot@golang.org>
Mon, 5 Jun 2023 03:11:36 +0000 (03:11 +0000)
commit96d16803c2aae5407e99c2a1db79bb51d9e1c8da
treeb1640a78ee047592a7cc9c3ee911fd2fd906c5af
parent2f5e2f6cc12b4f654b96d6ac6da80cd693e33fc4
cmd/compile: allow ir.OMIN/ir.OMAX in mayCall

CL 496257 adds min/max builtins, which may appear as argument to a
function call, so it will be tested by mayCall. But those ops are not
handled by mayCall, causes the compiler crashes.

Fixes #60582

Change-Id: I729f10bf62b4aad39ffcb1433f576e74d09fdd9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/500575
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/walk/walk.go
test/fixedbugs/issue60582.go [new file with mode: 0644]