gc: fix order of evaluation
Pulling function calls out to happen before the expression being evaluated was causing illegal reorderings even without inlining; with inlining it got worse. This CL adds a separate ordering pass to move things with a fixed order out of expressions and into the statement sequence, where they will not be reordered by walk. Replaces lvd's CL 5534079. Fixes #2740. R=lvd CC=golang-dev https://golang.org/cl/5569062
Showing
src/cmd/gc/order.c
0 → 100644
test/func8.go
0 → 100644
test/reorder2.go
0 → 100644
Please
register
or
sign in
to comment