Skip to content

Commit

Permalink
go/ir: fix order of variables in sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed May 25, 2024
1 parent 94ed054 commit 36c8ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/ir/sanity.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func (s *sanity) checkFunction(fn *Function) bool {
}
}
}
if src, syn := fn.Synthetic == 0, fn.source != nil; src != syn {
if syn, src := fn.Synthetic == 0, fn.source != nil; src != syn {
s.errorf("got fromSource=%t, hasSyntax=%t; want same values", src, syn)
}
for i, l := range fn.Locals {
Expand Down

0 comments on commit 36c8ae1

Please sign in to comment.