Skip to content

Commit

Permalink
go/ir: emit Low expression before High in *ast.Slice
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Feb 22, 2024
1 parent 102ab03 commit d965e98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/ir/UPSTREAM
Expand Up @@ -5,5 +5,5 @@ The changes are too many to list here, and it is best to consider this package i
Upstream changes still get applied when they address bugs in portions of code we have inherited.

The last upstream commit we've looked at was:
915f6209478fe61eb90dbe155a8a1c58655b931f
b900e8804030b22a099f187ef7bdc65bed470c7f

6 changes: 3 additions & 3 deletions go/ir/builder.go
Expand Up @@ -680,12 +680,12 @@ func (b *builder) expr0(fn *Function, e ast.Expr, tv types.TypeAndValue) Value {
}

var low, high, max Value
if e.High != nil {
high = b.expr(fn, e.High)
}
if e.Low != nil {
low = b.expr(fn, e.Low)
}
if e.High != nil {
high = b.expr(fn, e.High)
}
if e.Slice3 {
max = b.expr(fn, e.Max)
}
Expand Down

0 comments on commit d965e98

Please sign in to comment.