Skip to content

Commit d965e98

Browse files
committed
go/ir: emit Low expression before High in *ast.Slice
1 parent 102ab03 commit d965e98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

go/ir/UPSTREAM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ The changes are too many to list here, and it is best to consider this package i
55
Upstream changes still get applied when they address bugs in portions of code we have inherited.
66

77
The last upstream commit we've looked at was:
8-
915f6209478fe61eb90dbe155a8a1c58655b931f
8+
b900e8804030b22a099f187ef7bdc65bed470c7f
99

go/ir/builder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,12 @@ func (b *builder) expr0(fn *Function, e ast.Expr, tv types.TypeAndValue) Value {
680680
}
681681

682682
var low, high, max Value
683-
if e.High != nil {
684-
high = b.expr(fn, e.High)
685-
}
686683
if e.Low != nil {
687684
low = b.expr(fn, e.Low)
688685
}
686+
if e.High != nil {
687+
high = b.expr(fn, e.High)
688+
}
689689
if e.Slice3 {
690690
max = b.expr(fn, e.Max)
691691
}

0 commit comments

Comments
 (0)