Skip to content

Commit ca5cea9

Browse files
committed
cmd/compile: add OMOD to list of ops that might panic
Follow-up to CL 32551. Change-Id: If68f9581a7f13e04796aaff2007c09f8ea2c3611 Reviewed-on: https://go-review.googlesource.com/32586 Run-TryBot: Josh Bleecher Snyder <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 154d013 commit ca5cea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/gc/subr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ func ullmancalc(n *Node) {
11831183
goto out
11841184
}
11851185
case OINDEX, OSLICE, OSLICEARR, OSLICE3, OSLICE3ARR, OSLICESTR,
1186-
OIND, ODOTPTR, ODOTTYPE, ODIV:
1186+
OIND, ODOTPTR, ODOTTYPE, ODIV, OMOD:
11871187
// These ops might panic, make sure they are done
11881188
// before we start marshaling args for a call. See issue 16760.
11891189
ul = UINF

0 commit comments

Comments
 (0)